Share data between electron and node


#1

Hi,

I want to write an application which once it’s launched will wait for new data (on nodejs) and append theme to a table as a row.

We want to distribute it on our company like an electron app. When it’s launched it has to launch a node server which will connect to a serve an wait for data.

When there is a data it has to display it on the electron window.

As fas as I dit, I’ve got the node server runnig and a electron windows is displayed, but, How can I read dis data and append them to a table as a row for example? how can I comincate between node and my html?


#2

You need to set up a communication between the browser process (node) and the renderer process (the window) using ipc.