electron ipcRender.once 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"
})