title: Access a function in main window from renderer process in Electron
body: <p>I am integrating the Skype web sdk conversation control in my application. I have</p>
  
  <ul>
  <li>the main process in the background</li>
  <li>there is a main window (a separate renderer process)</li>
  <li>there are chat windows (separate renderer processes) which have been opened by clicking on the main window</li>
  </ul>
  
  <p>In the main window, I am initialising the Skype Web SDK, signing in the user and then fetching the contact list. Now when I click on a contact, it should open separate chat window and start the conversation control in this window. </p>
  
  <p>The skype call in main window looks something like </p>
  
  <pre><code>skypeWebApi.renderConversation(containerDivReference)
  </code></pre>
  
  <p>The skypeWebApi.renderConversation function is available in main window renderer process and containerDivReference is available in the chat window renderer process</p>
  
  <p>To achieve this, I Passed skypeWebApi reference to chat window renderer process. However, due to serialization, renderConversation isn't available here. So it doesn't work.</p>
  
  <p>Is there any way to access this function placed within the main window renderer process?</p>
  
  <p>I tried to send an event to main window with the containerDiv reference, but that didn't work either. Plus, it didn't seem like a very clean solution as there were a lot of events going to and fro.</p>
  
  <p>Right now what I am trying to achieve is communication between 2 separate renderer process. </p>
  
  <p>I can also restructure my code to initialise the SDK in main process and let these renderer processes (main window and chat window) call the functions in the main process</p>
  
  <p>Any help?</p>