Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

startWorkerRuntime

function startWorkerRuntime(transport, options?): () => void;

Defined in: packages/engine/src/worker/runtime.ts:111

Attach the runtime to a transport and start serving.

Returns a teardown function that clears the engine and detaches, for a host that reuses a transport or shuts a worker down cleanly.

ParameterType
transportWorkerTransport
optionsWorkerRuntimeOptions

() => void