GameRoom.onState() method
listen to state events, this is fired whenever the client receives a state update from the server as defined by the tick rate
Signature:
onState(listener: () => void): () => void;
Parameters
Parameter |
Type |
Description |
---|---|---|
listener |
() => void |
() => void