I'm working on a problem using two signalR Hubs, when I close the navigator window (or tab) only one OnDisconnected is called. Example pseudo-code:
Hub1{ ... OnDisconnected(){print(1)} }
Hub2{ ... OnDisconnected(){print(2)} }
on window close the output is:
1
Can someone explain me why? Thank you.
Do you have any client methods attached to Hub2? If not, I think the client will just ignore it and only connect to Hub1.