FrameSink
FrameSink<
In> = (value,body?) =>void
Defined in: packages/net-core/src/frame-sink.ts:13
Receives decoded values.
A plain callback rather than an event: a link has exactly one consumer (the session above it) and this is the hottest path in the stack, so the dispatcher machinery is not worth its per-value cost here. Lifecycle concerns, which are rare and may have many listeners, remain events.
Type Parameters
Section titled “Type Parameters”In
Parameters
Section titled “Parameters”In
The decoded value.
ReadableStream<Uint8Array>
Present when the codec declared a streamed payload. The consumer must drain it; until it does, the transport stays paused.
Returns
Section titled “Returns”void