qmsk / e2

E2 Client, Tally output
Mozilla Public License 2.0
26 stars 7 forks source link

WebSocket timeouts to detect connection errors #4

Open SpComb opened 8 years ago

SpComb commented 8 years ago

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.