$.connection.myHubName.client.disconnect(function () {
$.connection.hub.start();
});
on hub.start(); server is started but still it working properly
$.connection.myHubName.client.disconnect(function () {
$.connection.hub.start();
});
on hub.start(); server is started but still it working properly
The correct method is hanging off the hub connection itself not the hub (so not the client object).
$.connection.hub.disconnected(function () { console.log('We are currently experiencing difficulties with the connection.') });