Used to manage WebSocket connections.
export class WebSocket { private constructor(); connect(uri: string, headers?: HttpHeader[]): Promise<WebSocketClient>;} Copy
export class WebSocket { private constructor(); connect(uri: string, headers?: HttpHeader[]): Promise<WebSocketClient>;}
Private
URL to make connection to.
Optional
An awaitable promise that contains the WebSocket client that was connected.
Attempts to connect a WebSocket client.
no-restricted-execution - This function can't be called in restricted-execution mode.
This function can't be called in early-execution mode.
Used to manage WebSocket connections.
Source