ByteSink
type ByteSink = object;Defined in: src/wire/writer.ts:198
A browser/worker-friendly byte sink: write receives each fully-serialized
chunk of response bytes (a schema msg, a batch, or the EOS marker) and must
deliver them in order. Used by the in-browser SAB (worker:) transport, which
has no Node fd/Socket — the sink writes into the worker→client ring.
Properties
Section titled “Properties”write: (bytes) => void | Promise<void>;Defined in: src/wire/writer.ts:200
Deliver one fully-serialized chunk of response bytes, in order.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
bytes |
Uint8Array |
Returns
Section titled “Returns”void | Promise<void>
