In SignalR, which onDisconnected is called when we have two hubs?

297 Views Asked by At

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.

1

There are 1 best solutions below

1
On

Do you have any client methods attached to Hub2? If not, I think the client will just ignore it and only connect to Hub1.