title: how to handle chrome.runtime.sendNativeMessage() in native app
body: <p>I am working on native messaging host. I am able to launch my custom application by using api</p>
  
  <pre><code>var port = chrome.runtime.connectNative('com.my_company.my_application');
  </code></pre>
  
  <p>I can post message to my custom app by using api</p>
  
  <pre><code>port.postMessage({ text: "Hello, my_application" });
  </code></pre>
  
  <p>I know they are using input/out stream to send and receive messages. 
  how should my native application(c or c++ exe) will get notify about message received
  which function/ event should i handle to receive message.</p>