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.
messagePortTransport
function messagePortTransport(port): WorkerTransport;Defined in: packages/engine/src/worker/transport.ts:171
Adapt a Node worker_threads port onto a WorkerTransport.
Covers the main-side Worker, the worker’s parentPort, and a
worker_threads MessagePort: each posts with postMessage and emits a
"message" event whose argument IS the payload (no .data wrapper, unlike
the DOM). On the main side pass the Worker; inside the worker pass
parentPort.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
port | MessagePortLike |