GameRoom.getPlayerStateSync() method
Returns the instance that is used to sync the players' states
Signature:
getPlayerStateSync(selector?: (state: S) => Record<string, any>): PlayerStateSync;
Parameters
Parameter |
Type |
Description |
---|---|---|
selector |
(state: S) => Record<string, any> |
(Optional) |
PlayerStateSync