Skip to content

Interface: WebSocketLike

The minimal surface of a WebSocket this module relies on.

Properties

onclose

onclose: ((event) => void) | null


onerror

onerror: ((event) => void) | null


onmessage

onmessage: ((event) => void) | null


onopen

onopen: ((event) => void) | null


readyState

readyState: number

Methods

close()

close(): void

Returns

void


send()

send(data): void

Parameters

data

string

Returns

void