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.
Type Parameters
Section titled “Type Parameters”TRegistry
Section titled “TRegistry”TRegistry extends SyncTableRegistry
Properties
Section titled “Properties”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.
Returns
Section titled “Returns”Promise<void>
connect
Section titled “connect”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).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
whenBooted
Section titled “whenBooted”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.
Returns
Section titled “Returns”Promise<SyncClient<TRegistry>>