GatewayDecoder
Defined in: packages/ws/src/decoder.ts:17
Decodes transport data into complete frames.
Methods
Section titled “Methods”push()
Section titled “push()”push(
data):string[] |Promise<string[]>
Defined in: packages/ws/src/decoder.ts:28
Feeds one WebSocket message.
A decoder that can answer synchronously must do so: delivery timing is observable to consumers, and an uncompressed frame has no reason to cost a microtask.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”string[] | Promise<string[]>
Every frame completed by this chunk; empty while a frame is still arriving.
reset()
Section titled “reset()”reset():
void
Defined in: packages/ws/src/decoder.ts:30
Discards buffered state. Call when a connection is replaced.
Returns
Section titled “Returns”void