Module socketioxide::handler
source · Expand description
Functions and types used to handle incoming connections and messages.
There is three main types of handlers: ConnectHandler, MessageHandler and DisconnectHandler.
All handlers can be async or not.
Re-exports
pub use connect::ConnectHandler;pub use connect::FromConnectParts;pub use disconnect::DisconnectHandler;pub use disconnect::FromDisconnectParts;pub use message::FromMessage;pub use message::FromMessageParts;pub use message::MessageHandler;
Modules
ConnectHandlertrait and implementations, used to handle the connect event. It has a flexible axum-like API, you can put any arguments as long as it implements theFromConnectPartstrait.DisconnectHandlertrait and implementations, used to handle the disconnect event. It has a flexible axum-like API, you can put any arguments as long as it implements theFromDisconnectPartstrait.- Extractors for
ConnectHandler,MessageHandler MessageHandlertrait and implementations, used to handle the message events. It has a flexible axum-like API, you can put any arguments as long as it implements theFromMessagePartstrait or theFromMessagetrait for the last argument.