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.
createLinkedTransports
function createLinkedTransports(): { client: WorkerTransport; host: WorkerTransport;};Defined in: packages/engine/src/worker/transport.ts:59
A pair of linked in-process transports.
client and host are two ends of one channel: a message posted on either
is cloned at post time and delivered to the other on a microtask, so delivery
is asynchronous (as a real worker’s is) but deterministic (no timers, no I/O).
Wire client into createWorkerEngine and host into
startWorkerRuntime to run the whole protocol, DTO serialisation and
cancellation included, without a second thread. This is the transport tests
use, and a fit for a host that wants the message-passing shape on one thread.
Returns
Section titled “Returns”{ client: WorkerTransport; host: WorkerTransport;}client
Section titled “client”client: WorkerTransport;host: WorkerTransport;