When registering a new event handler with the On(string eventName, Func<SocketIOResponse, Task> callback) method it should also be unregistered when the Off(string eventName) method is called.
Actual Behavior
The event does not get unregistered (_eventFuncHandlers are ignored in the Off method).
Steps to Reproduce the Problem
Register an event handler with the On(string eventName, Func<SocketIOResponse, Task> callback) method.
Unregister it with the Off(string eventName) method.
Expected Behavior
When registering a new event handler with the
On(string eventName, Func<SocketIOResponse, Task> callback)
method it should also be unregistered when theOff(string eventName)
method is called.Actual Behavior
The event does not get unregistered (
_eventFuncHandlers
are ignored in theOff
method).Steps to Reproduce the Problem
On(string eventName, Func<SocketIOResponse, Task> callback)
method.Off(string eventName)
method.Specifications