Skip to content

WebSocketConnection

Defined in: relay-sdks/ts/packages/relay-websocket/src/index.ts:35

What one call of a WebSocketTransportFactory returns: the shape the SDK’s createTransport expects.

framing: "websocket";

Defined in: relay-sdks/ts/packages/relay-websocket/src/index.ts:41

Always 'websocket': the upgrade request carries the URL’s path and query, as a WebTransport CONNECT does.


ready: Promise<void>;

Defined in: relay-sdks/ts/packages/relay-websocket/src/index.ts:39

Resolves once the WebSocket is open and the peer selected an offered protocol.


transport: WebSocketMoqtTransport;

Defined in: relay-sdks/ts/packages/relay-websocket/src/index.ts:37

The transport the MOQT session runs on.