win.webContents.send('async-msg', 'pinggg');
ipc.on('reply', (event, arg) => {
console.log("Message is ", arg);
})
import { ipcMain } from "electron";
ipcMain.on("async-msg", (event, arg) => {
console.log(arg);
event.sender.send('reply', 'pong');
});
const ipc = require("electron").ipcRenderer;
ipc.send("start-recording", "ping");
ipc.on('reply', (event, arg) => {
console.log("Message is ", arg);
})