Documentation / @andrew_l/app / ParentPortLike
Interface: ParentPortLike
A minimal port abstraction implemented by both IPC MessagePort and the process-based shim spawned by initThread.
Methods
close()?
optionalclose():unknown
Returns
unknown
on()
on(
event,cb):unknown
Parameters
event
"message"
cb
(msg) => void
Returns
unknown
postMessage()
postMessage(
msg,cb?):unknown
Parameters
msg
unknown
cb?
() => void
Returns
unknown