The question is how can SignalR JavaScript client detect when connection with server is lost?
Thanks for any reply!
The below, worked for me:
var connection = $.hubConnection('signalrConnectionUrl'); connection.disconnected(function() { console.log('Connection disconnected'); });
I'm using version: 2.1.2
See the following link for reference: Link