title: Communicating between the main and renderer function in Puppeteer
body: <p>Is there a way to communicate between the main and renderer process in Puppeteer similar to the <a href="https://electronjs.org/docs/api/ipc-main" rel="noreferrer">ipcMain</a> and <a href="https://electronjs.org/docs/api/ipc-renderer" rel="noreferrer">ipcRenderer</a> functions in <a href="https://electronjs.org/" rel="noreferrer">Electron</a>.</p>
  
  <p>A simple application is demonstrated in this <a href="http://electron.rocks/different-ways-to-communicate-between-main-and-renderer-process/" rel="noreferrer">post</a>. I find this functionality can be useful for debugging by triggering event from the <code>page</code> to the main function and vice-versa. </p>