Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sticmac
Copy link

@sticmac sticmac commented Jul 11, 2022

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.

@lpsandaruwan
Copy link
Contributor

Hi @endel,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants