How to communicate between Renderer & Browser via a child process/Web worker?


#1

If I do a child process fork in the renderer is there a way to access the electron module, especially the IPC communication with the main process. Reason is that the renderer on most windows needs to do quite a bit of work in my app and I’m trying to have all data from the main app pass through to a separate worker/process for data processing before passing it through to the renderer which should hopefully not have to do much work at all.


#2

For now I’ve decided to just use node-ipc module to use ipc communication, so that the child process can communicate directly with the main process without going via the renderer process. It would be nice if there is a better way to do this directly in electron, but hey, this is what node modules are for. :slightly_smiling: