Hi all!
As colyseus client im using colyseus.js.
Is there a way to get simple changes from server for using with mobx/immer/immutable libraries?
I see few ways to resolve it:
- Override
SchemaSerializerand replaceschemawithregisterSerializer - Recursively add
onChange/onAdd/onRemovefunction on eachSchemafield - Get
toJSONon each change and replace with current (too slow)
First two ways can't implemented without access to private fields like $changes.