Class Sockets
Index
Methods
all
close
createWebSocket
- createWebSocket(
url: string,
options?: { protocols?: string | string[] },
): Promise<WebSocketConnection> Create a WebSocket connection
Parameters
- url: string
The URL to connect to
Optionaloptions: { protocols?: string | string[] }The options for the WebSocket connection
Returns Promise<WebSocketConnection>
The WebSocket connection
- url: string
createWebTransport
- createWebTransport(
url: string,
options?: { allowPooling?: boolean },
): Promise<WebTransportConnection> Create a WebTransport connection
Parameters
- url: string
The URL to connect to
Optionaloptions: { allowPooling?: boolean }The options for the WebTransport connection
Returns Promise<WebTransportConnection>
The WebTransport connection
- url: string
Get all socket connections