Skip to content

BridgeEnvelope

Defined in: packages/client/src/worker/protocol.ts:53

The wire envelope. payload is the codec-encoded body — opaque to the router, which only routes on type and correlates on id. Keeping the body opaque is what lets a future codec return a columnar buffer (a transferable) in payload without any change to routing.

ch: "pgxsinkit-bridge"

Defined in: packages/client/src/worker/protocol.ts:54


optional id?: string

Defined in: packages/client/src/worker/protocol.ts:58

Correlation id for request/response pairs (rpc, subscribe, token pull). Absent for fire-and-forget fanout.


payload: unknown

Defined in: packages/client/src/worker/protocol.ts:60

Codec-encoded body — opaque to the router; decode with the same BridgeCodec.


type: BridgeMessageType

Defined in: packages/client/src/worker/protocol.ts:56


v: 1

Defined in: packages/client/src/worker/protocol.ts:55