Skip to content

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

Open
sticmac wants to merge 1 commit into
colyseus:masterfrom
sticmac:feature/multiple_message_callbacks
Open

Several callbacks can be added to a same message type and disposed (#197)#199
sticmac wants to merge 1 commit into
colyseus:masterfrom
sticmac:feature/multiple_message_callbacks

Conversation

@sticmac

@sticmac sticmac commented Jul 11, 2022

Copy link
Copy Markdown

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
Copy Markdown
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.

2 participants