title: Is there a function to send electron 6 data to an angular 8 component?
body: <p>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?</p>
  
  <p>PS: I've thought of a socket conversation, but I don't think it's a good practice.</p>
  
  <p>Angular:</p>
  
  <pre><code>obterUsuario(){
      this.electronService.ipcRenderer.send("ping", "Teste");
  }
  </code></pre>
  
  <p>Electron:</p>
  
  <pre><code>ipcMain.on("ping", (event, messageFromAngular) =&gt; {
      console.log("[electron] pong", messageFromAngular);
      let user = { email: "desenvolvedor@1245.com.br", password: "teste001" };
  });
  </code></pre>