Function trillium_websockets::websocket

source ยท
pub fn websocket<H>(websocket_handler: H) -> WebSocket<H>
Expand description

Builds a new trillium handler from the provided WebSocketHandler. Alias for WebSocket::new