GameRoom.onConnect() method
listen to connect events, this is fired when the client is connected to the server, but not necessarily synced
Signature:
onConnect(listener: () => void): () => void;
Parameters
Parameter | Type | Description |
---|---|---|
listener | () => void |
Returns:
() => void