route

Function route 

Source
pub fn route(
    path: &[u8],
    on_message: ove_httpd_ws_handler_t,
    on_close: ove_httpd_ws_close_handler_t,
) -> Result<()>
Expand description

Register a WebSocket route.

path must be a null-terminated byte string (e.g. b"/ws\0").

ยงErrors

Returns an error if the route table is full.