Skip to content

Interface: Player ​

Defined in: protocol.ts:30

A seat in a room. A player keeps their seat while disconnected.

Properties ​

PropertyTypeDescriptionDefined in
idstringThe id the gateway's authenticate gave this player.protocol.ts:32
connectedbooleanWhether the player has a connection open right now.protocol.ts:34
name?stringThe 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

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.