Skip to main content

EpochMessageHandler

Type Alias EpochMessageHandler 

Source
pub type EpochMessageHandler = Arc<dyn Fn(u64, Message) + Send + Sync>;
Expand description

Function type for handling WebSocket messages with connection ownership.

The initial connection has epoch 0. Each replacement connection increments the epoch, and every application or reconnect-control message carries the epoch of its originating reader.

Aliased Typeยง

pub struct EpochMessageHandler { /* private fields */ }