@caprid/relay-websocket
@caprid/relay-websocket: the Relay SDK’s transport adapter for QMux over WebSocket. It carries MOQT on QMux
(draft-ietf-quic-qmux, wire format qmux-01) inside one WebSocket connection over TCP, the relay’s fallback for
networks that block UDP and browsers without a usable WebTransport. It follows the transport adapter contract
(spec/transport-adapter.md), with the deviations the contract records for it.
- createWebSocketTransport: always WebSocket.
- withWebSocketFallback: WebTransport first, racing a WebSocket once it has had a 250 ms head start.
Pass either factory as the SDK’s createTransport.
Classes
Section titled “Classes”Interfaces
Section titled “Interfaces”- CloseInfo
- FallbackConnection
- FallbackTransport
- WebSocketConnection
- WebSocketFallbackOptions
- WebSocketMoqtTransport