RepackedSyncBrokerOptions
Defined in: packages/pgwasm/src/opfs/broker/server.ts:109
Properties
Section titled “Properties”doorbell
Section titled “doorbell”
readonlydoorbell:RepackedDoorbell
Defined in: packages/pgwasm/src/opfs/broker/server.ts:116
The shared doorbell every attached channel rings.
readonlyoptionallog?: (message) =>void
Defined in: packages/pgwasm/src/opfs/broker/server.ts:120
Where a detach reason goes. Defaults to console.warn.
Parameters
Section titled “Parameters”message
Section titled “message”string
Returns
Section titled “Returns”void
readonlyoptionalnow?: () =>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.
Returns
Section titled “Returns”bigint
pollIntervalMs?
Section titled “pollIntervalMs?”
readonlyoptionalpollIntervalMs?: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.
readonlyvfs: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.