Skip to content

PlainTextDecoder

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

Passes text frames through unchanged, for an uncompressed connection.

new PlainTextDecoder(): PlainTextDecoder

PlainTextDecoder

push(data): string[]

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

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[]

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

GatewayDecoder.push


reset(): void

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

Discards buffered state. Call when a connection is replaced.

void

GatewayDecoder.reset