MessagePortMain

external class MessagePortMain : <ERROR CLASS> ERROR CLASS: Symbol not found for NodeEventEmitter(source)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val closeEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple>
Link copied to clipboard
val messageEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<electron/core/MessageEvent>>

Functions

Link copied to clipboard
fun close()

Disconnects the port, so it is no longer active.

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

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

Link copied to clipboard
fun start()

Starts the sending of messages queued on the port. Messages will be queued until this method is called.