Channel
Defined in: packages/runtime/src/container/proxy.ts:54
Minimal bidirectional message channel — matches the MessagePort shape exactly.
Remarks
Section titled “Remarks”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.
Properties
Section titled “Properties”onmessage
Section titled “onmessage”onmessage: ((
ev) =>void) |null
Defined in: packages/runtime/src/container/proxy.ts:58
Receive handler — set by exportFS / importFS; owners MUST NOT mutate.
Methods
Section titled “Methods”postMessage()
Section titled “postMessage()”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.
Parameters
Section titled “Parameters”unknown
transfer?
Section titled “transfer?”unknown[]
Returns
Section titled “Returns”void