Skip to content

Documents for @litert/websocket / Client / createSecureClient

Function: createSecureClient() ​

createSecureClient(opts): IClient

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

Create a WebSocket client via HTTPS.

The client will not connect to the server automatically. You need to call the connect method to establish the connection. Before calling connect, you must setup the event listeners to handle the events emitted during the connection.

Parameters ​

opts ​

IWssConnectOptions

The options for the connection.

Returns ​

IClient

The secure WebSocket client.