I have read docs, but still cannot realize. I have desktop application written in C and Chrome extension. I know how to receive this message in my chrome extension:
I used function write:
write(1,buf,n);
buf is your message, n is length if your message You also can use printf.