GameRoom.onSync() method
listen to sync events, this is fired when the client is connected to the server and the initial state is synced
Signature:
onSync(listener: () => void): () => void;
Parameters
Parameter |
Type |
Description |
---|---|---|
listener |
() => void |
() => void