colyseus-unity-sdk icon indicating copy to clipboard operation
colyseus-unity-sdk copied to clipboard

Several callbacks can be added to a same message type and disposed (#197)

Open sticmac opened this issue 1 year ago • 1 comments

Related to #197.

This PR provides a solution which allows one to assign several callbacks to a same message type. Each OnMessage call returns an IDisposable object which can later be called through the Dispose method to remove the callback.

sticmac avatar Jul 11 '22 15:07 sticmac

Hi @endel,

I tested this, materials are in https://github.com/lpsandaruwan/colyseus-unity-sdk-test-pr-199 Looking good 👍 💯

lpsandaruwan avatar Jul 21 '22 10:07 lpsandaruwan