Function thruster_socketio::handle_io_with_capacity
source · [−]pub async fn handle_io_with_capacity<T: Context + SocketIOContext + Default>(
context: T,
handler: fn(_: SocketIOSocket) -> Pin<Box<dyn Future<Output = Result<SocketIOSocket, ()>> + Send>>,
message_capacity: usize
) -> MiddlewareResult<T>
Expand description
Handles any incoming socket.io requests for a particular context by using the passed in handler.