Skip to content

SyncWorkerHost

Defined in: packages/client/src/worker/define-sync-worker.ts:239

The worker-side host: attach ports, await the boot, and (for tests) tear down.

TRegistry extends SyncTableRegistry

close: () => Promise<void>

Defined in: packages/client/src/worker/define-sync-worker.ts:245

Detach every port and stop the underlying client — for tests and dedicated-worker teardown.

Promise<void>


connect: (port) => void

Defined in: packages/client/src/worker/define-sync-worker.ts:241

Bind a transport port (a SharedWorker connection, the dedicated-worker self, or a test channel port).

BridgePort

void


whenBooted: () => Promise<SyncClient<TRegistry>>

Defined in: packages/client/src/worker/define-sync-worker.ts:243

Resolves with the booted in-process engine once the first attach’s createSyncClient completes.

Promise<SyncClient<TRegistry>>