Skip to content

defineSyncWorker

defineSyncWorker<TRegistry>(options): SyncWorkerHost<TRegistry>

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

Build a worker host over the given engine config. In a real worker file the consumer calls this at module top level and it auto-binds the global scope; a test constructs it and drives SyncWorkerHost.connect.

TRegistry extends SyncTableRegistry

DefineSyncWorkerOptions<TRegistry>

SyncWorkerHost<TRegistry>