The problem:
SignalR is not firing OnDisconnected on my webserver. It is very simple, but is not firing. I have tried:
- Closing browser window
- Navigating away
- Reloading
- Firing stop() on the SignalR-connection from client side.
public override Task OnDisconnected(bool stopCalled) {
LogUtil.LogInfo("Disconn");
return base.OnDisconnected(stopCalled);
}
I am using SignalR 2.2.0.0 and OnConnected is working just fine.
I have tried recommendations of doing at last one client call to make sure the connection is up and running.
I have searched all forums, SO, GIT etc etc and nothing solves my issue.