I'm trying to connect Chrome extension and my C# application.
I'm using this code https://stackoverflow.com/a/13953481/3828636
Everything is almost working there in only one problem I can send message only 6 times and than my c# app doesn't recieve anything. When I re-open my extension ( click on icon ) it works and c# app recieve messages but still only 6 times.
What could be a problem?
I tried to send it like this:
function send(data){
var data = new FormData();
var xhr = new XMLHttpRequest();
xhr.open('POST', listener, true);
xhr.onload = function () {
};
xhr.send(data);
}
There is some limit of sending messages by port? or what?
Thanks for help!
EDIT !!
I have already made it. The problem was my C# application it was receiving messages but it wasn't responsing.
It was like
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
BLOCKED ( because to many sends without response )
but it should be like:
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
I have already made it. The problem was my C# application it was receiving messages but it wasn't responsing.
It was like
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
CHROME ( SEND ) -> C#
BLOCKED ( because to many sends without response )
but it should be like:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With