PlainTextDecoder
Defined in: packages/ws/src/decoder.ts:45
Passes text frames through unchanged, for an uncompressed connection.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PlainTextDecoder():
PlainTextDecoder
Returns
Section titled “Returns”PlainTextDecoder
Methods
Section titled “Methods”push()
Section titled “push()”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.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”string[]
Every frame completed by this chunk; empty while a frame is still arriving.
Implementation of
Section titled “Implementation of”reset()
Section titled “reset()”reset():
void
Defined in: packages/ws/src/decoder.ts:49
Discards buffered state. Call when a connection is replaced.
Returns
Section titled “Returns”void