client instance present on:
This is the raw WebSocket connection coming from the
ws package. There are more methods available which aren't encouraged to use along with Colyseus.
Unique id per client. When the same client connects with multiple browser tabs, the
id will be the same for every connection.
Unique id per session. Whilst you may have the same
id for multiple sessions from the same client, the
sessionId is always unique.
Force disconnection of the
client with the server.
This will trigger
room.onLeave event on the client-side.