WebSocketHandlerFn

Type Alias WebSocketHandlerFn 

Source
pub type WebSocketHandlerFn = Arc<dyn Fn(WebSocketConnection) -> BoxFuture<'static, Response> + Send + Sync>;
Available on crate feature websocket only.
Expand description

Legacy function pointer type for WebSocket handlers.

§Deprecation Note

This type is maintained for backward compatibility. New code should use UniversalWebSocketHandler instead.

Aliased Type§

pub struct WebSocketHandlerFn { /* private fields */ }