e2 icon indicating copy to clipboard operation
e2 copied to clipboard

WebSocket timeouts to detect connection errors

Open SpComb opened this issue 9 years ago • 0 comments

Exiting the tally/server will close the WebSocket TCP connection and immediately trigger onClose. Killing the network connection will leave the angularjs client dead with no error indication.

Detecting a loss of network connection needs some kind of websocket ping/pong mechanism.

angular-websocket has a initialTimeout/maxTimeout options, but these only seem to apply to reconnect operations.

SpComb avatar Aug 16 '16 15:08 SpComb