Signalr check if hub already started
There are a few ways to approach this problem. The first is to create your own connection status tracking variables, which you set with the connection callback events: $.connection.hub.start().done(function() { ConnectionStarted = true; }) You can check ConnectionStarted before attempting to start the connection. Unfortunately, this won’t work well, as start() is asynchronous and so … Read more