Skip to content

FrameTransport

Defined in: protocol/src/transport.ts:21

Transport for one framed data-plane connection.

close(): void

Defined in: protocol/src/transport.ts:36

Tear the connection down and reject any pending backpressure waits.

void


pause(): void

Defined in: protocol/src/transport.ts:30

Pause inbound data (receive-side backpressure).

void


resume(): void

Defined in: protocol/src/transport.ts:33

Resume inbound data.

void


writeFrame(header, payload): Promise<void>

Defined in: protocol/src/transport.ts:27

Write header+payload contiguously as one wire frame. Resolves once the bytes have been fully handed to the OS (i.e. after any backpressure has drained); rejects if the connection dies first.

Buffer

Buffer

Promise<void>