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
|
Full Usage:
parentPort.offMessage handler
Parameters:
MessageEvent -> unit
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.
|
Full Usage:
parentPort.onMessage handler
Parameters:
MessageEvent -> unit
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.
|
Full Usage:
parentPort.onceMessage handler
Parameters:
MessageEvent -> unit
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.
|
Full Usage:
parentPort.postMessage message
Parameters:
obj
Modifiers: inline |
Sends a message from the process to its parent.
|
fable-electron-docs-api