Endel Dreyer

Results 308 comments of Endel Dreyer

Hi @Lonri, the schema structures should be used for the room's state (`this.state`). But if you are trying to send it as a message I suggest using `.toJSON()` when sending...

Thanks for the feedback @rnd256, I agree completely, all these methods should be for internal usage only and not exposed. I hope we can tackle this sooner or later.

Interesting, thanks for reporting again @rnd256, I'm gonna have a look at this during this week!

Hey @rnd256, I just figured what's happening. The instance of `gameState.phase` is getting replaced in the first patch arriving from the server. Therefore the local `phase` reference is not relevant...

> By that, do you mean for example being able to declare a `gameState.phase` `OnChange` handler that persists even if `phase` ends up being set to `null` and/or a new...

Hi @tonygiang, thanks for letting us know! - Have you experienced this in Unity editor, native build, or WebGL? `UniTask` can be a clue here. I personally never used it...

Hi @dsarfati, schema-encoded messages are only supported from server to client. You can pass regular objects on `room.send()` - messages are encoded using msgpack by default. The schema-encoded messages from...

Thanks for the suggestion @rthery, I think that'd be valuable indeed!

A related issue has been brought up in the `colyseus.js` client: https://github.com/colyseus/colyseus.js/issues/68 I think we could come up with an API for all clients in the next version. Something like:...

Thanks for reporting, @sticmac, We've added support for multiple callbacks on the _other clients_ for upcoming version `0.15` but it turns out the Unity SDK is still missing this feature...