Skip to main content

SandboxPlayer

ZEPETO.Multiplay.SandboxPlayer

Represents a player's client connected to the Multiplay Room.

Properties

sessionId

Readonly sessionId: string

Client's session ID


userId

Readonly userId: string

Player's user ID

Methods

loadDataStorage

loadDataStorage(): DataStorage

Retrieves the data storage object associated with the client's player.

Returns

DataStorage

DataStorage object associated with the client's player.


send

send<T>(type, message?): void

Sends a message through a specified channel to a client.

Type parameters

NameDescription
TOptionally specifies the type of message.

Parameters

NameTypeDescription
typestring | numberThe identifier of the channel to send the message through.
message?TOptional message Optional content of the message to be sent.

Returns

void