colyseus / colyseus-unity-sdk

⚔ Colyseus Multiplayer SDK for Unity
https://docs.colyseus.io/getting-started/unity-sdk/
MIT License
371 stars 100 forks source link

schema lost in reconnection situation #211

Open NoahHahm opened 1 year ago

NoahHahm commented 1 year ago

we update the schema we missed in the reconnection situation, but due to the difference between the schema I was holding and the schema received after joining again from the server Map schema, etc. I want to trigger events such as OnAdd, OnChange, etc. any good examples of this?

endel commented 1 year ago

Hi @NoahHahm, the schema callbacks need to be re-established upon reconnection. The same calls to OnAdd, OnChange, etc. need to happen both for join and reconnect.

NoahHahm commented 1 year ago

Is it correct that the schema change events that are not received from the server because the connection is lost do not work? I understand that I need to subscribe to the event again. The local schema you had and the schema downloaded from the server Is there a way to compare and call events for the changed parts?