basic chat example does not preserve order
amir-arad last edited by
I'm starting out with the basic example from
and it seems that the state sync does not preserve the order of the messages array
what am i missing?
I also need to update the "chat" example, because that's not the most optimal way of handling chat. The messages on a chat should be ephemeral and not preserved in the room's state.
The "state handler" is a much better example of how to use the platform: https://github.com/gamestdio/colyseus-examples/blob/master/rooms/02-state-handler.ts
Sorry for the inconvenience! :)