Skip to main content

HEARTBEAT_EVERY

Constant HEARTBEAT_EVERY 

Source
pub(crate) const HEARTBEAT_EVERY: Duration;
Expand description

How often a connection is asked to prove it is still there.

The socket carried no keepalive, so a peer that vanished without closing - a slept machine, a wedged process, a network that went away - left its viewer attached and any companion waiting, with neither side told the other was gone. Every WebSocket client answers a Ping without its app’s involvement, so the answer is the proof.