Skip to content

Documentation / @super-line/core / ClientTransport

Interface: ClientTransport ​

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

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:140

Parameters ​

handshakeParams ​

Record<string, string>

hooks ​
onClose ​
onDrain ​
onMessage ​
onOpen ​

Returns ​

RawConn

Released under the MIT License.