Skip to content

Conn

One open socket, as the hub sees it.

buffered(): number

bytes queued and not yet written to the network

number


close(code, reason): void

number

string

void


send(data): void

string

void


optional sendBytes(data): void

Optional: the same kind of message already encoded as UTF-8, to go out as a text frame (ws: send(data, { binary: false })). The hub encodes each room frame once and hands every reader the same bytes; without this it calls send(text) per reader.

Uint8Array

void