I am trying to connect a Chrome extension and a C # application.
I am using this code https://stackoverflow.com/a/464632/
Everything almost works there in only one problem, I can send a message only 6 times, and my C # application does not receive anything. When I open the extension again (click on the icon), it works and the C # application receives messages, but still only 6 times.
What could be the problem?
I tried sending it as follows:
function send(data){ var data = new FormData(); var xhr = new XMLHttpRequest(); xhr.open('POST', listener, true); xhr.onload = function () { }; xhr.send(data); }
Is there any limit to sending messages on a port? or what?
Thanks for the help!
CHANGE!
I've already done it. The problem was that my C # application was receiving messages, but it was not responding.
It was like
CHROME (SEND) → C #
CHROME (SEND) → C #
CHROME (SEND) → C #
CHROME (SEND) → C #
CHROME (SEND) → C #
CHROME (SEND) → C #
BLOCKED (because for many items unanswered)
but it should look like this:
CHROME (SEND) → C #
C # (RESPONSE) → CHROME
CHROME (SEND) → C #
C # (RESPONSE) → CHROME
CHROME (SEND) → C #
C # (RESPONSE) → CHROME
CHROME (SEND) → C #
C # (RESPONSE) → CHROME
CHROME (SEND) → C #
C # (RESPONSE) → CHROME
source share