Skip to main content

ChannelHandler

Type Alias ChannelHandler 

Source
pub type ChannelHandler<C> = Arc<dyn Fn(Uuid, Frame<C>, &PushServer<C>) + Send + Sync>;
Expand description

Callback invoked for each inbound frame on a non-system channel.

The handler receives the sender’s client ID, the frame, and a reference to the server so it can call PushServer::send or inspect connection state.

Aliased Type§

pub struct ChannelHandler<C> { /* private fields */ }