Module 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§

Heartbeat
Wrapper for a muxado TypedSession that adds heartbeating over a dedicated typed stream.
HeartbeatConfig
The heartbeat task configuration.
HeartbeatCtl
Controller for the heartbeat task.

Traits§

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