Open henczi opened 4 years ago
I agree, this cannot work.
/cc @beorosz
Let me take a look.
Probably we need to change the way we register/unregister... (but we need to ensure that this
still works correctly on the implementation).
Okay, I started to work on this.
The
registerCallbacks
and theunregisterCallbacks
methods always create a new function for the handlers, therefore the unregistration process will not work (because the comparison in theHubConnection
'soff
method is reference-based).https://github.com/dotnet/aspnetcore/blob/master/src/SignalR/clients/ts/signalr/src/HubConnection.ts#L460
Related PR: https://github.com/RicoSuter/SigSpec/pull/22