Module muxado::heartbeat

source ·
Expand description

Heartbeating TypedSession wrapper.

This can be used to wrap a TypedSession to provide heartbeating functionality. The wrapper will start a background task to send heartbeats to the remote via a dedicated heartbeat stream. It will also accept incoming heartbeat streams and start a task to reply to them.

Structs

Traits

  • A handler called on every heartbeat with the latency for that beat.