MessagePortLike
Defined in: net/MessagePortTransport.ts:18
The minimal MessagePort surface (structural — works for window and worker
ports). A real DOM MessagePort types its onmessage against the full
MessageEvent, which mutable-property variance rejects against this shape,
so the constructor also accepts MessagePort directly.
Properties
Section titled “Properties”onmessage
Section titled “onmessage”onmessage: ((
event) =>void) |null
Defined in: net/MessagePortTransport.ts:20
Methods
Section titled “Methods”close()?
Section titled “close()?”
optionalclose():void
Defined in: net/MessagePortTransport.ts:21
Returns
Section titled “Returns”void
postMessage()
Section titled “postMessage()”postMessage(
data):void
Defined in: net/MessagePortTransport.ts:19
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void