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.
Methods
Section titled “Methods”deliverControlPort()
Section titled “deliverControlPort()”deliverControlPort(
port):void
Defined in: packages/client/src/worker/attach-sync-client.ts:139
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
onError()
Section titled “onError()”onError(
listener):void
Defined in: packages/client/src/worker/attach-sync-client.ts:138
Parameters
Section titled “Parameters”listener
Section titled “listener”(message) => void
Returns
Section titled “Returns”void
terminate()
Section titled “terminate()”terminate():
void
Defined in: packages/client/src/worker/attach-sync-client.ts:137
Returns
Section titled “Returns”void