Skip to content

Documentation / @super-line/core / ClientTransport

Interface: ClientTransport

Defined in: packages/core/src/transport.ts:102

Client side: dial the server, encoding handshakeParams (role + params) in the transport's native form.

Methods

connect()

connect(handshakeParams, hooks): RawConn

Defined in: packages/core/src/transport.ts:103

Parameters

handshakeParams

Record<string, string>

hooks
onClose
onDrain
onMessage
onOpen

Returns

RawConn

Released under the MIT License.