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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
transport | WorkerTransport |
options | WorkerRuntimeOptions |
Returns
Section titled “Returns”() => void