WebSocket
Nodepod API / src / ws / WebSocket
Interface: WebSocket
Section titled “Interface: WebSocket”Defined in: src/polyfills/ws.ts:111
Extends
Section titled “Extends”TinyEmitter
Properties
Section titled “Properties”_bc:
BroadcastChannel|null
Defined in: src/polyfills/ws.ts:128
_bcMsgHandler
Section titled “_bcMsgHandler”_bcMsgHandler: ((
ev) =>void) |null
Defined in: src/polyfills/ws.ts:129
_boundServer
Section titled “_boundServer”_boundServer:
WebSocketServer|null
Defined in: src/polyfills/ws.ts:123
_elHandle
Section titled “_elHandle”_elHandle:
Handle|null
Defined in: src/polyfills/ws.ts:127
_listeners
Section titled “_listeners”_listeners:
Map<string,Set<Handler>>
Defined in: src/polyfills/ws.ts:70
Inherited from
Section titled “Inherited from”TinyEmitter._listeners
_native
Section titled “_native”_native:
WebSocket|null
Defined in: src/polyfills/ws.ts:124
_tcpInboundBuf
Section titled “_tcpInboundBuf”_tcpInboundBuf:
Uint8Array
Defined in: src/polyfills/ws.ts:126
_tcpSocket
Section titled “_tcpSocket”_tcpSocket:
TcpSocket|null
Defined in: src/polyfills/ws.ts:125
_uid:
string
Defined in: src/polyfills/ws.ts:122
binaryType
Section titled “binaryType”binaryType:
"arraybuffer"|"blob"
Defined in: src/polyfills/ws.ts:121
bufferedAmount
Section titled “bufferedAmount”bufferedAmount:
number
Defined in: src/polyfills/ws.ts:120
CLOSED
Section titled “CLOSED”
readonlyCLOSED:number
Defined in: src/polyfills/ws.ts:115
CLOSING
Section titled “CLOSING”
readonlyCLOSING:number
Defined in: src/polyfills/ws.ts:114
CONNECTING
Section titled “CONNECTING”
readonlyCONNECTING:number
Defined in: src/polyfills/ws.ts:112
extensions
Section titled “extensions”extensions:
string
Defined in: src/polyfills/ws.ts:119
onclose
Section titled “onclose”onclose: ((
ev) =>void) |null
Defined in: src/polyfills/ws.ts:131
onerror
Section titled “onerror”onerror: ((
ev) =>void) |null
Defined in: src/polyfills/ws.ts:132
onmessage
Section titled “onmessage”onmessage: ((
ev) =>void) |null
Defined in: src/polyfills/ws.ts:133
onopen
Section titled “onopen”onopen: ((
ev) =>void) |null
Defined in: src/polyfills/ws.ts:130
readonlyOPEN:number
Defined in: src/polyfills/ws.ts:113
protocol
Section titled “protocol”protocol:
string
Defined in: src/polyfills/ws.ts:118
readyState
Section titled “readyState”readyState:
number
Defined in: src/polyfills/ws.ts:116
url:
string
Defined in: src/polyfills/ws.ts:117
Methods
Section titled “Methods”_bindServer()
Section titled “_bindServer()”_bindServer(
srv):void
Defined in: src/polyfills/ws.ts:144
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
_deliverMessage()
Section titled “_deliverMessage()”_deliverMessage(
data):void
Defined in: src/polyfills/ws.ts:145
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
_failOpen()
Section titled “_failOpen()”_failOpen(
reason):void
Defined in: src/polyfills/ws.ts:136
Parameters
Section titled “Parameters”reason
Section titled “reason”string
Returns
Section titled “Returns”void
_open()
Section titled “_open()”_open():
void
Defined in: src/polyfills/ws.ts:134
Returns
Section titled “Returns”void
_openNative()
Section titled “_openNative()”_openNative():
void
Defined in: src/polyfills/ws.ts:135
Returns
Section titled “Returns”void
close()
Section titled “close()”close(
code?,reason?):void
Defined in: src/polyfills/ws.ts:138
Parameters
Section titled “Parameters”number
reason?
Section titled “reason?”string
Returns
Section titled “Returns”void
emit()
Section titled “emit()”emit(
evt, …args):void
Defined in: src/polyfills/ws.ts:73
Parameters
Section titled “Parameters”string
…unknown[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TinyEmitter.emit
off(
evt,fn):this
Defined in: src/polyfills/ws.ts:72
Parameters
Section titled “Parameters”string
Handler
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TinyEmitter.off
on(
evt,fn):this
Defined in: src/polyfills/ws.ts:71
Parameters
Section titled “Parameters”string
Handler
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TinyEmitter.on
ping()
Section titled “ping()”ping():
void
Defined in: src/polyfills/ws.ts:139
Returns
Section titled “Returns”void
pong()
Section titled “pong()”pong():
void
Defined in: src/polyfills/ws.ts:140
Returns
Section titled “Returns”void
ref():
this
Defined in: src/polyfills/ws.ts:142
Returns
Section titled “Returns”this
send()
Section titled “send()”send(
payload):void
Defined in: src/polyfills/ws.ts:137
Parameters
Section titled “Parameters”payload
Section titled “payload”string | ArrayBuffer | Uint8Array<ArrayBufferLike>
Returns
Section titled “Returns”void
terminate()
Section titled “terminate()”terminate():
void
Defined in: src/polyfills/ws.ts:141
Returns
Section titled “Returns”void
unref()
Section titled “unref()”unref():
this
Defined in: src/polyfills/ws.ts:143
Returns
Section titled “Returns”this