Communication browser extension and external application

I am trying to connect a browser extension (Firefox, Chrome, IE ...) with an external application. Use the system without polling to notify messages between components.

I have already seen several approaches, but I'm not sure which of them are possible and which of them are the best.

In one solution, an IPC (OS dependent) solution can be used as named pipes or sockets, but I'm not sure if I can open a named pipe in the firefox or chrome extension. Moreover, I do not know if there is any event-based system that does not need to be polled as a message processing mechanism.

Another solution (only if I use firefox) is to use XPCOM, I think that with this approach I should create an instance of the XPCOM component implemented in the browser extension from an external application. I think that in my external application there should be an XPCOM problem as a dependency, right?

But using this method, is it possible to handle communication asynchronously?

Thanks in advance;)

+6
browser ipc
source share

No one has answered this question yet.

See related questions:

4622
What is the maximum length of a URL in different browsers?
2639
How to disable browser autocomplete in the web form field / input tag?
658
How to make browser navigate URL in JavaScript
7
Inter-process communication between browser extension and native application
4
IPC: using named pipes in C ++ between two programs
3
Communicate between the browser application and the Windows.net application
3
Recommended way to run binary from Mozilla extension (with std I / O)?
2
IPC mechanism for communication between C ++ and Objective-C
2
interprocess communication with and without .net
0
Interserver communication in a local environment?

All Articles