How can I send a message from Google Chrome extension to desktop application?

desktop-application, google-chrome, google-chrome-extension, message, winapi

Solution

I see three options:

- You could use the internet. You can have a remote service that both the chrome extension and your desktop app talk to, to communicate.

- You could have your desktop app have a simple server built into it so that the chrome extension can make local http requests to it to communicate with it.

- Use the Google NPAPI plugin functionality to have full access to the computer. Now deprecated

Problem

I have a Windows desktop application which must work in collaboration with my Chrome extension. Can I send a message to my desktop app somehow from Google Chrome extension? Which IPC objects can I use?

Original source