Expand description
Functions and types used to handle incoming connections and messages. There is three main types of handlers: connect, message and disconnect.
Re-exports§
pub use connect::ConnectHandler;pub use connect::ConnectMiddleware;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§
- connect
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.- disconnect
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.- message
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.
Enums§
- Value
- Represents a value that can be sent over the engine.io wire as an engine.io packet
or the data that can be outputed by a binary parser (e.g.
MsgPackParser) or a string parser (e.g.CommonParser)).