Skip to main content

HEARTBEAT_TIMEOUT

Constant HEARTBEAT_TIMEOUT 

Source
pub const HEARTBEAT_TIMEOUT: Duration;
Expand description

Teardown window for a WebSocket carrying no inbound frame of any kind.

Liveness rests on the venue still sending frames rather than on market data arriving: a quiet market is legitimate, and the pong answering every HEARTBEAT_INTERVAL ping refreshes this window even when nothing trades. Three heartbeat cycles tolerate two lost replies before teardown.