Replies: 1 comment 1 reply
-
Hi @meturgut, welcome 👋 Glad you're considering Colyseus for your next project!
There are advantages to using the state, though. For example, when a client joins the room mid-game, it then receives the current data in the state. On version Kind regards |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I plan to develop a 2-player competitive turn-based game using Colyseus, and I want to send all messages on the server side using
room.broadcast()
and receive them on the client side withroom.onMessage()
.1-Do I need to derive my message classes from the Schema class?
2-Is it necessary to set the state using the setState function when the room is created?
What would be the best approach to follow in general?
Beta Was this translation helpful? Give feedback.
All reactions