emitter-io / csharp

Client library for emitter.io compatible with .Net, .Net MicroFramework and WinRT
http://emitter.io
Eclipse Public License 1.0
29 stars 21 forks source link

Bug in Emitter.Subscribe.cs #20

Closed postacik closed 3 years ago

postacik commented 4 years ago
public ushort Unsubscribe(string key, string channel)
        {
            // Unregister the handler
            this.Trie.UnregisterHandler(key);

            // Unsubscribe
            return this.Client.Unsubscribe(new string[] { FormatChannel(key, channel) });
        }

...should be updated as:

public ushort Unsubscribe(string key, string channel)
        {
            // Unregister the handler
            this.Trie.UnregisterHandler(channel);

            // Unsubscribe
            return this.Client.Unsubscribe(new string[] { FormatChannel(key, channel) });
        }