Skip to main content

OnClientConnectedHandler

Type Alias OnClientConnectedHandler 

Source
pub type OnClientConnectedHandler = Arc<dyn Fn(String) + Send + Sync>;
Expand description

Handler called when a new client connects to this connection. Receives the connection identifier (e.g., “ws://127.0.0.1:9000”).

Aliased Type§

pub struct OnClientConnectedHandler { /* private fields */ }