Skip to main content

Module websocket

Module websocket 

Source
Expand description

WebSocket fallback transport, running the QMux wire format over ws:// or wss://.

Used when QUIC is unreachable: UDP blocked by a firewall, a proxy in the way, a network that only passes TCP/443. The client races this against QUIC and gives QUIC a small head start (Client::delay), so WebSocket only wins when QUIC can’t get through. Servers accept it on a separate TCP port via Listener.

Structs§

Client
WebSocket configuration for the client.
Listener
Listens for incoming WebSocket connections on a TCP port.

Enums§

Error
Errors specific to the WebSocket fallback backend.