Skip to main content

serve_ws

Function serve_ws 

Source
pub fn serve_ws(
    port: u16,
    handler_name: String,
    program: Arc<Program>,
    policy: Policy,
    registry: Arc<ChatRegistry>,
) -> Result<Value, String>
Expand description

Bind a WebSocket server. Blocks; returns Unit on shutdown (the process is normally killed before that).