Skip to content

GatewayDecoder

Defined in: packages/ws/src/decoder.ts:17

Decodes transport data into complete frames.

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.

unknown

string[] | Promise<string[]>

Every frame completed by this chunk; empty while a frame is still arriving.


reset(): void

Defined in: packages/ws/src/decoder.ts:30

Discards buffered state. Call when a connection is replaced.

void