Monday, May 20, 2024
69
rated 0 times [  76] [ 7]  / answers: 1 / hits: 36165  / 13 Years ago, wed, february 1, 2012, 12:00:00

How can a SignalR JavaScript client detect when a connection with the server is lost?


More From » long-polling

 Answers
45

The provided answers will no longer work.
This is the new way to stop/disconnect connections.


myHub.stop().then(() => {
alert('Server has disconnected');
});

[#87688] Tuesday, January 31, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kristinsonjab

Total Points: 364
Total Questions: 98
Total Answers: 98

Location: Christmas Island
Member since Mon, Oct 19, 2020
4 Years ago
;