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
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
Name | Description |
---|---|
T | Optionally specifies the type of message . |
Parameters
Name | Type | Description |
---|---|---|
type | string | number | The identifier of the channel to send the message through. |
message? | T | Optional message Optional content of the message to be sent. |
Returns
void