DEV Community

triki-omar
triki-omar

Posted on

how to connect to a renderer process created by another renderer process in electron js

// in the first renderer process use this code
const { remote } = require('electron');
remote.ipcMain.on('customChannel', (event, message) => {console.log(merssage)} )

// in the renderer process created by the first one
const { ipcRenderer } = const('electron');
ipcRenderer.send('customChannel', 'message');

Top comments (0)