pusher / pusher-websocket-dotnet

Pusher Channels Client Library for .NET
MIT License
112 stars 114 forks source link

Mixing events #109

Closed adamvas closed 3 years ago

adamvas commented 3 years ago

Hi,

I migrated from 1.2 to 2.0 followed what you wrote and it seems events can be mixed. I bind all my events - using private channel - and it ends up like just pick an event in random manner.

channel.Bind("my-event-1", ExecuteEvent1);
channel.Bind("my-event-2", ExecuteEvent2);
channel.Bind("my-event-3", ExecuteEvent3);

private void ExecuteEvent*(PusherEvent e)
{
 ...
}

Did I miss sth?

elverkilde commented 3 years ago

This is indeed a bug, thanks for reporting. We're working on a fix, probably best to downgrade to 1.2 for now.

elverkilde commented 3 years ago

hi @adamvas, this was fixed in #110 and released as version 2.0.1, please try it out and let me know if it resolves your issue.

AdamVasPrezi commented 3 years ago

Hi, 2.0.1 seems fine! Thanks @elverkilde