Differences between revisions 1 and 2
Revision 1 as of 2023-02-24 21:10:45
Size: 665
Comment:
Revision 2 as of 2023-02-24 21:11:14
Size: 761
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
const { ipcRenderer } = require("electron");
Line 54: Line 56:
const { ipcRenderer } = require("electron");

Electron IPC Renderer


Invoke


On

const { ipcRenderer } = require("electron");

ipcRenderer.on("channel name", (event, content) => {
  console.log(event, content);
});


Once


PostMessage


RemoveListener


RemoveAllListeners


Send

const { ipcRenderer } = require("electron");

ipcRenderer.send("channel name", content);


SendSync


SendTo


SendToHost


See also

Electron API for ipcRenderer


CategoryRicottone

Node/Electron/IpcRenderer (last edited 2023-02-24 21:11:14 by DominicRicottone)