Expand description
Functions and types used to handle incoming connections and messages. There is three main types of handlers: connect, message and disconnect. All handlers can be async or not.
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
ConnectHandler
trait 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 theFromConnectParts
trait.- disconnect
DisconnectHandler
trait 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 theFromDisconnectParts
trait.- message
MessageHandler
trait 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 theFromMessageParts
trait or theFromMessage
trait 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
)).