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.
Type Parameters
Section titled “Type Parameters”TRegistry
Section titled “TRegistry”TRegistry extends SyncTableRegistry
Parameters
Section titled “Parameters”options
Section titled “options”DefineSyncWorkerOptions<TRegistry>
Returns
Section titled “Returns”SyncWorkerHost<TRegistry>