Skip to content

RepackedSyncBrokerOptions

Defined in: packages/pgwasm/src/opfs/broker/server.ts:109

readonly doorbell: RepackedDoorbell

Defined in: packages/pgwasm/src/opfs/broker/server.ts:116

The shared doorbell every attached channel rings.


readonly optional log?: (message) => void

Defined in: packages/pgwasm/src/opfs/broker/server.ts:120

Where a detach reason goes. Defaults to console.warn.

string

void


readonly optional now?: () => bigint

Defined in: packages/pgwasm/src/opfs/broker/server.ts:118

The timestamp the broker supplies to every core call. Defaults to the wall clock.

bigint


readonly optional pollIntervalMs?: number

Defined in: packages/pgwasm/src/opfs/broker/server.ts:128

How long one blocking iteration parks before re-scanning anyway. Defaults to 250 ms. The protocol has no missed-wakeup window — the server observes the doorbell ticket BEFORE it scans, so a request published during the scan makes the wait return not-equal at once — so this is purely a heartbeat: it costs four idle wakeups a second and turns any future slip into a latency blip instead of a permanently parked backend. Infinity makes the loop a pure park.


readonly vfs: RepackedFileSystem

Defined in: packages/pgwasm/src/opfs/broker/server.ts:114

The store this broker owns. Nothing else may hold it. A RepackedVfs is the one-store form; a MountedRepackedVfs serves several stores as one tree, and the broker cannot tell them apart.