I need to send information to an angular component in order to do an "automatic" login, I can send component data to the electron process using the IPCRederer (on component) and IPCMain (on 'electron' side), but I can't use in the opposite way that would be from the electron to the component, could you help me?
PS: I've thought of a socket conversation, but I don't think it's a good practice.
Angular:
obterUsuario(){
this.electronService.ipcRenderer.send("ping", "Teste");
}
Electron:
ipcMain.on("ping", (event, messageFromAngular) => {
console.log("[electron] pong", messageFromAngular);
let user = { email: "desenvolvedor@1245.com.br", password: "teste001" };
});