Interface: Player
Defined in: protocol.ts:30
A seat in a room. A player keeps their seat while disconnected.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
id | string | The id the gateway's authenticate gave this player. | protocol.ts:32 |
connected | boolean | Whether the player has a connection open right now. | protocol.ts:34 |
name? | string | The player's name, when the gateway's authenticate gave one (signed-in players with Accounts have one). Only set in the hooks that run for a connecting request: onJoin, onReconnect, onArrive and onHttp. Keep it in your state if you need it later. | protocol.ts:41 |