Skip to content

RepackedChannel

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:547

One client’s request/response channel. Both the client and the server hold an instance over the same SharedArrayBuffer; neither owns the memory, and nothing but the header words is atomic.

readonly buffer: SharedArrayBuffer

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:549


readonly doorbell: RepackedDoorbell

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:550


readonly header: Int32Array

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:551


readonly id: number

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:548


readonly payload: Uint8Array

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:552

get payloadBytes(): number

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:599

number

state(): number

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:603

number


transfer(): RepackedChannelTransfer

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:595

The shape to hand to postMessage.

RepackedChannelTransfer


static attach(transfer): RepackedChannel

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:581

Rebuild a channel around buffers that arrived over postMessage.

RepackedChannelTransfer

RepackedChannel


static create(options): RepackedChannel

Defined in: packages/pgwasm/src/opfs/broker/protocol.ts:562

RepackedDoorbell

number

number

RepackedChannel