Skip to content

WebSocketLike

Defined in: websocket.ts:13

The slice of the WHATWG WebSocket instance API this transport uses.

PropertyModifierTypeDefined in
readyStatereadonlynumberwebsocket.ts:18
addEventListener(type, listener): void;

Defined in: websocket.ts:16

ParameterType
typestring
listener(event) => void

void


close(code?, reason?): void;

Defined in: websocket.ts:15

ParameterType
code?number
reason?string

void


removeEventListener(type, listener): void;

Defined in: websocket.ts:17

ParameterType
typestring
listener(event) => void

void


send(data): void;

Defined in: websocket.ts:14

ParameterType
datastring

void