Skip to content

WebSocketServer

Nodepod API


Nodepod API / src / ws / WebSocketServer

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

  • TinyEmitter

_bc: BroadcastChannel | null

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


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

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


_listeners: Map<string, Set<Handler>>

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

TinyEmitter._listeners


_route: string

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


clients: Set<WebSocket>

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


options: ServerConfig

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

_injectClientPayload(source, data): void

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

WebSocket

unknown

void


_listen(): void

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

void


address(): { address: string; family: string; port: number; } | null

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

{ address: string; family: string; port: number; } | null


close(done?): void

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

() => void

void


emit(evt, …args): void

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

string

unknown[]

void

TinyEmitter.emit


handleUpgrade(req, socket, head, done): void

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

unknown

unknown

unknown

(ws, req) => void

void


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