Header menu logo fable-electron-docs-api

parentPort Type

⚠ Process Availability: Main ❌ | Renderer ❌ | Utility ✔ | Exported ✔

Interface for communication with parent process.Process: UtilityparentPort is an EventEmitter. This object is not exported from the 'electron' module. It is only available as a property of the process object in the Electron API.

Static members

Static member Description

parentPort.offMessage handler

Full Usage: parentPort.offMessage handler

Parameters:
Modifiers: inline

Emitted when the process receives a message. Messages received on this port will be queued up until a handler is registered for this event.

handler : MessageEvent -> unit

parentPort.onMessage handler

Full Usage: parentPort.onMessage handler

Parameters:
Modifiers: inline

Emitted when the process receives a message. Messages received on this port will be queued up until a handler is registered for this event.

handler : MessageEvent -> unit

parentPort.onceMessage handler

Full Usage: parentPort.onceMessage handler

Parameters:
Modifiers: inline

Emitted when the process receives a message. Messages received on this port will be queued up until a handler is registered for this event.

handler : MessageEvent -> unit

parentPort.postMessage message

Full Usage: parentPort.postMessage message

Parameters:
    message : obj

Modifiers: inline

Sends a message from the process to its parent.

message : obj

Type something to start searching.