In Electron, we often need to coordinate actions between multiple processes. For example, if a user clicks a button in a renderer process that makes a new browserWindow
open, we need to be able to send a message to the main process that triggers this action. We’ll look at how to do just that using the ipcRenderer
and ipcMain
modules.