hapijs / nes

WebSocket adapter plugin for hapi routes
Other
502 stars 87 forks source link

Notify client when heartbeat times out #240

Closed mtharrison closed 6 years ago

mtharrison commented 6 years ago

When a heartbeat timeout occurs, currently we wait for the server sent close frame and onclose event to determine that the Nes connection has disconnected, and to call onDisconnect(). However this is probably too late. Consumer should be notified as soon as we consider the connection has gone away so the consumer knows not to send any more data.

mtharrison commented 6 years ago

Closed https://github.com/hapijs/nes/pull/243

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.