Skip to content

Interface: TransportHandlers ​

Methods ​

onClose() ​

ts
onClose(info): void;

Called exactly once, whether the close was ours, theirs, or a failure.

Parameters ​

ParameterType
info{ code: number; reason: string; }
info.codenumber
info.reasonstring

Returns ​

void


onError() ​

ts
onError(err): void;

Parameters ​

ParameterType
errError

Returns ​

void


onMessage() ​

ts
onMessage(bytes): void;

Parameters ​

ParameterType
bytesUint8Array

Returns ​

void


onOpen() ​

ts
onOpen(): void;

Returns ​

void

Talkline documentation