Sync part of state with only one client

23 Feb 2019, 20:11

How can I sync a part of state (i.e. player's hand or a just-drawn card) with only one player, so that others do not get the state? I want to protect against looking at socket's data in browser's dev console and modifying javascript to listen to another player's data, so simply .listen()-ing to only a part of server's state is not an option...

23 Feb 2019, 20:12

Right now you are not able to. You can, however, client.send() specific parts to specific clients so the knowledge remains private.

23 Feb 2019, 20:15
This post is deleted!
23 Feb 2019, 20:16

hey @burtek, welcome! there are plans for supporting this on next version 0.10.x

just to add on what @seiyria said, here are some related topics:

23 Feb 2019, 20:17

thanks @endel & @seiyria ! I'll give it a try