MessagePortMain Type
⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌
Instance members
| Instance member |
Description
|
Full Usage:
this.close ()
Modifiers: inline |
Disconnects the port, so it is no longer active. |
Full Usage:
this.offClose handler
Parameters:
unit -> unit
Modifiers: inline |
Emitted when the remote end of a MessagePortMain object becomes disconnected.
|
|
Emitted when a MessagePortMain object receives a message.
|
Full Usage:
this.onClose handler
Parameters:
unit -> unit
Modifiers: inline |
Emitted when the remote end of a MessagePortMain object becomes disconnected.
|
|
Emitted when a MessagePortMain object receives a message.
|
Full Usage:
this.onceClose handler
Parameters:
unit -> unit
Modifiers: inline |
Emitted when the remote end of a MessagePortMain object becomes disconnected.
|
|
Emitted when a MessagePortMain object receives a message.
|
Full Usage:
this.postMessage (message, ?transfer)
Parameters:
obj
?transfer : MessagePortMain[]
Modifiers: inline |
Sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.
|
Full Usage:
this.start ()
Modifiers: inline |
Starts the sending of messages queued on the port. Messages will be queued until this method is called. |
fable-electron-docs-api