Skip to content

Channel

Defined in: packages/runtime/src/container/proxy.ts:54

Minimal bidirectional message channel — matches the MessagePort shape exactly.

Any object with a postMessage and settable onmessage satisfies this. Works with browser MessagePort, Node.js worker_threads.MessagePort, or the in-memory pair from createMemoryChannel.

onmessage: ((ev) => void) | null

Defined in: packages/runtime/src/container/proxy.ts:58

Receive handler — set by exportFS / importFS; owners MUST NOT mutate.

postMessage(msg, transfer?): void

Defined in: packages/runtime/src/container/proxy.ts:56

Send a message. transfer is advisory; not all channel types honor it.

unknown

unknown[]

void