postMessage
The postMessage() method of the MessagePort interface sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.
external fun postMessage(message: JsAny?, options: StructuredSerializeOptions = definedExternally)(source)
external fun postMessage(message: String, options: StructuredSerializeOptions = definedExternally)(source)