I use SignalR 2 and I am having problems opening multiple tabs on the same page. After opening 4 or 5 tabs, all requests fall into a pending status, for example, if I have exceeded the maximum allowable browser. If I close a few tabs, everything will work again. Even if all open tabs are open, if I open another browser, it works. This happens in both Chrome and Firefox. If I disable SignalR, I can open as many tabs as I want.
This is my code:
notificator.hub = $.connection.messageHub;
notificator.hub.client.refreshNotifications = function () {
};
$.connection.hub.start().done(function () {
notificator.hubStarted = true;
});
$.connection.hub.disconnected(function () {
notificator.hubStarted = false;
setTimeout(function () {
$.connection.hub.start();
}, 2000);
});
If I delete the handler for the disabled event, the problem remains. The notification system works correctly, so SignalR does its job, but this causes problems in the application. This is even slower.