Skip to content

WebSocket

Nodepod API


Nodepod API / src / ws / WebSocket

Defined in: src/polyfills/ws.ts:111

  • TinyEmitter

_bc: BroadcastChannel | null

Defined in: src/polyfills/ws.ts:128


_bcMsgHandler: ((ev) => void) | null

Defined in: src/polyfills/ws.ts:129


_boundServer: WebSocketServer | null

Defined in: src/polyfills/ws.ts:123


_elHandle: Handle | null

Defined in: src/polyfills/ws.ts:127


_listeners: Map<string, Set<Handler>>

Defined in: src/polyfills/ws.ts:70

TinyEmitter._listeners


_native: WebSocket | null

Defined in: src/polyfills/ws.ts:124


_tcpInboundBuf: Uint8Array

Defined in: src/polyfills/ws.ts:126


_tcpSocket: TcpSocket | null

Defined in: src/polyfills/ws.ts:125


_uid: string

Defined in: src/polyfills/ws.ts:122


binaryType: "arraybuffer" | "blob"

Defined in: src/polyfills/ws.ts:121


bufferedAmount: number

Defined in: src/polyfills/ws.ts:120


readonly CLOSED: number

Defined in: src/polyfills/ws.ts:115


readonly CLOSING: number

Defined in: src/polyfills/ws.ts:114


readonly CONNECTING: number

Defined in: src/polyfills/ws.ts:112


extensions: string

Defined in: src/polyfills/ws.ts:119


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

Defined in: src/polyfills/ws.ts:131


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

Defined in: src/polyfills/ws.ts:132


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

Defined in: src/polyfills/ws.ts:133


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

Defined in: src/polyfills/ws.ts:130


readonly OPEN: number

Defined in: src/polyfills/ws.ts:113


protocol: string

Defined in: src/polyfills/ws.ts:118


readyState: number

Defined in: src/polyfills/ws.ts:116


url: string

Defined in: src/polyfills/ws.ts:117

_bindServer(srv): void

Defined in: src/polyfills/ws.ts:144

WebSocketServer

void


_deliverMessage(data): void

Defined in: src/polyfills/ws.ts:145

unknown

void


_failOpen(reason): void

Defined in: src/polyfills/ws.ts:136

string

void


_open(): void

Defined in: src/polyfills/ws.ts:134

void


_openNative(): void

Defined in: src/polyfills/ws.ts:135

void


close(code?, reason?): void

Defined in: src/polyfills/ws.ts:138

number

string

void


emit(evt, …args): void

Defined in: src/polyfills/ws.ts:73

string

unknown[]

void

TinyEmitter.emit


off(evt, fn): this

Defined in: src/polyfills/ws.ts:72

string

Handler

this

TinyEmitter.off


on(evt, fn): this

Defined in: src/polyfills/ws.ts:71

string

Handler

this

TinyEmitter.on


ping(): void

Defined in: src/polyfills/ws.ts:139

void


pong(): void

Defined in: src/polyfills/ws.ts:140

void


ref(): this

Defined in: src/polyfills/ws.ts:142

this


send(payload): void

Defined in: src/polyfills/ws.ts:137

string | ArrayBuffer | Uint8Array<ArrayBufferLike>

void


terminate(): void

Defined in: src/polyfills/ws.ts:141

void


unref(): this

Defined in: src/polyfills/ws.ts:143

this