electron ipcmain send to ipcrenderer code example
Example: electron send message from renderer to main
const { ipcRenderer } = require('electron')
// inside a renderer process
ipcRenderer.send('text', {
data: "some data"
})
const { ipcRenderer } = require('electron')
// inside a renderer process
ipcRenderer.send('text', {
data: "some data"
})