Skip to content

ElectedEngineWorker

Defined in: packages/client/src/worker/attach-sync-client.ts:136

The elected engine worker handle the election coordinator drives (ADR-0049 D5, step 8): terminate() (a deliberate teardown / respawn), onError (a reported worker death → immediate respawn), and deliverControlPort (post the engine end of the announce control channel — { [CONTROL_PORT_DELIVERY_KEY]: true } with the port transferred — so the elected worker’s step-9 control plane starts on it). The consumer supplies a factory that constructs their own defineSyncWorker entry as a dedicated Worker; wrap it with wrapEngineWorker.

deliverControlPort(port): void

Defined in: packages/client/src/worker/attach-sync-client.ts:139

unknown

void


onError(listener): void

Defined in: packages/client/src/worker/attach-sync-client.ts:138

(message) => void

void


terminate(): void

Defined in: packages/client/src/worker/attach-sync-client.ts:137

void