javascript - Communication JQuery and C# -


i'm trying connect chrome extension , c# application.

i'm using code https://stackoverflow.com/a/13953481/3828636

everything working there in 1 problem can send message 6 times , c# app doesn't recieve anything. when re-open extension ( click on icon ) works , c# app recieve messages still 6 times.

what problem?

i tried send this:

function send(data){     var data = new formdata();     var xhr = new xmlhttprequest();     xhr.open('post', listener, true);     xhr.onload = function () { }; xhr.send(data); } 

there limit of sending messages port? or what?

thanks help!

edit !!

i have made it. problem c# application receiving messages wasn't responsing.

it like

chrome ( send ) -> c#

chrome ( send ) -> c#

chrome ( send ) -> c#

chrome ( send ) -> c#

chrome ( send ) -> c#

chrome ( send ) -> c#

blocked ( because many sends without response )

but should 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 made it. problem c# application receiving messages wasn't responsing.

it like

chrome ( send ) -> c#

chrome ( send ) -> c#

chrome ( send ) -> c#

chrome ( send ) -> c#

chrome ( send ) -> c#

chrome ( send ) -> c#

blocked ( because many sends without response )

but should 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


Comments