PortLike
Defined in: src/cluster/transports/MessageChannelTransport.ts:23
MessagePort-like minimal surface — we only use these three members so
the transport works equally well with browser MessagePort,
Node/Bun worker_threads.MessagePort, or any in-process shim used by
tests.
Properties
Section titled “Properties”onmessage
Section titled “onmessage”onmessage: ((
e) =>void) |null
Defined in: src/cluster/transports/MessageChannelTransport.ts:25
Methods
Section titled “Methods”close()?
Section titled “close()?”
optionalclose():void
Defined in: src/cluster/transports/MessageChannelTransport.ts:26
Returns
Section titled “Returns”void
postMessage()
Section titled “postMessage()”postMessage(
value,transfer?):void
Defined in: src/cluster/transports/MessageChannelTransport.ts:24
Parameters
Section titled “Parameters”unknown
transfer?
Section titled “transfer?”unknown[]
Returns
Section titled “Returns”void
start()?
Section titled “start()?”
optionalstart():void
Defined in: src/cluster/transports/MessageChannelTransport.ts:27
Returns
Section titled “Returns”void