Function trillium_websockets::json_websocket
source · pub fn json_websocket<T>(json_websocket_handler: T) -> WebSocket<JsonHandler<T>>where
T: JsonWebSocketHandler,
Expand description
builds a new trillium handler from the provided
JsonWebSocketHandler
. Alias for WebSocket::new_json