You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is still a bit of work to hook up getting and setting of a users current rooms state or data (The latest test I added may be the quickest way and requires defining a getter and setter on the server config I think we should give for free). What are your thoughts on exposing methods that abstract that work away from the user.
The text was updated successfully, but these errors were encountered:
Side note: I think user should be the first arg to server messages handlers, with data as an optional arg, to allow for sending messages without data easier.
Will not add this: room data should be able to contain secrets that the client may not be privy to. Revelation of game state should go through messages.
user is the second argument to keep the client / server consistent, with data being the first argument, and additional situation-specific arguments coming after that.
There is still a bit of work to hook up getting and setting of a users current rooms state or data (The latest test I added may be the quickest way and requires defining a getter and setter on the server config I think we should give for free). What are your thoughts on exposing methods that abstract that work away from the user.
The text was updated successfully, but these errors were encountered: