Skip to content

Documents for @litert/websocket / Client / wssConnect

Function: wssConnect()

wssConnect(opts): Promise<IClient>

Defined in: src/lib/Client.ts:265

Establish a WebSocket connection to a server via HTTPS.

Parameters

opts

IWssConnectOptions

The options for the connection.

Returns

Promise<IClient>

The promise of the WebSocket client.

Deprecated

Use createSecureClient method instead, because the client can not process early data sent by server correctly if you use this method. And this method will be removed in the future.