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
SchemaSerializer
and replaceschema
withregisterSerializer
- Recursively add
onChange
/onAdd
/onRemove
function on eachSchema
field - Get
toJSON
on each change and replace with current (too slow)
First two ways can't implemented without access to private fields like $changes
.