Trait socketioxide::handler::connect::ConnectHandler
source · pub trait ConnectHandler<A: Adapter, T>: Send + Sync + 'static {
// Required method
fn call(&self, s: Arc<Socket<A>>, auth: Option<String>);
}Expand description
Define a handler for the connect event.
It is implemented for closures with up to 16 arguments. They must implement the FromConnectParts trait.