Is there a main process equivalent of ipcRender.invoke?

Viewed 121

ipcRender.invoke() will allow a render process to get a promise from the main Electron process. But is there a reverse version – where the main process can call get a promise from a render window? Something like (pseudo code)…

win.webContents.invoke('preview-video', data).then((responseData) => {console.log(responseData)})
0 Answers
Related