Skip to main content

Module ws_handler

Module ws_handler 

Source

Functionsยง

handle_http_client
Handle a TCP connection that may be an HTTP request or a WebSocket upgrade.
serve
Accept loop serving HTTP/WebSocket clients on a pre-bound listener. Connections are handled via spawn_local, so this must run inside a LocalSet. Used by both the daemon and in-process integration tests (which bind an OS-assigned port).