Skip to content

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.

In

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.

void