postMessage

fun postMessage(message: Any?, transfer: ERROR CLASS: Symbol not found for js.array.ReadonlyArray<electron/core/MessagePortMain> = definedExternally)(source)

Sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.