electron/docs/api/structures/ipc-renderer-event.md
Milan Burda ada8eb33b2
feat: deprecate ipcRenderer.sendTo() (#39091)
* feat: deprecate ipcRenderer.sendTo()

* docs: add _Deprecated_ to ipcRenderer.sendTo()
2023-07-21 11:16:44 +02:00

770 B

IpcRendererEvent Object extends Event

  • sender IpcRenderer - The IpcRenderer instance that emitted the event originally
  • senderId Integer - The webContents.id that sent the message, you can call event.sender.sendTo(event.senderId, ...) to reply to the message, see ipcRenderer.sendTo for more information. This only applies to messages sent from a different renderer. Messages sent directly from the main process set event.senderId to 0.
  • ports MessagePort[] - A list of MessagePorts that were transferred with this message