WebsocketCodec
此内容尚不支持你的语言。
Defined in: src/http/websocket/WebsocketCodec.ts:44
Bidirectional wire codec. TOut = what we send, TIn = what we receive.
Type Parameters
Section titled “Type Parameters”TOut
TIn
Properties
Section titled “Properties”
readonlyname:string
Defined in: src/http/websocket/WebsocketCodec.ts:46
Stable identifier — ‘json’ | ‘raw’ | custom. Informational (logs).
Methods
Section titled “Methods”decode()
Section titled “decode()”decode(
frame):TIn
Defined in: src/http/websocket/WebsocketCodec.ts:48
Parameters
Section titled “Parameters”Returns
Section titled “Returns”TIn
encode()
Section titled “encode()”encode(
message):WebsocketFrame
Defined in: src/http/websocket/WebsocketCodec.ts:47
Parameters
Section titled “Parameters”message
Section titled “message”TOut
