I am working on native messaging host. I am able to launch my custom application by using api
var port = chrome.runtime.connectNative('com.my_company.my_application');
I can post message to my custom app by using api
port.postMessage({ text: "Hello, my_application" });
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.