+ 1

How to use socket io for continous HTTP request instead of Ajax?

I have performance issues when use Ajax setInterval on continues request in background. So I like to resolve this issue using client side protocol. If any suggestions highly appreciated.

16th Apr 2017, 12:26 PM
Praveen J
Praveen J - avatar
3 Answers
+ 22
Not sure...
16th Apr 2017, 12:32 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 21
aj=new XMLHttpRequest(); aj.open("GET","URL"); aj.send(null); aj.onload=function(){data=this.responseText;this.send();};
16th Apr 2017, 12:29 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
@ValentinHacker Is it resolve the performance issue.? That same job done by ajax rite?
16th Apr 2017, 12:31 PM
Praveen J
Praveen J - avatar