nolongerinuse
2005
- Feb 1, 2014
- 165
- 137
We use web sockets, which is better than ajax.
@FrancisJoseph
Well yes... and no.
It depends on the situation and why you need it.
For example, you should be utilising XHR if you have a CMS unless otherwise said due to API pattern(s) and coding etiquette.
If you know that you're going to make a-lot of requests and need to keep content updated in real-time then yes WS would be the route forward.
I.E You are running a trading website and have to keep asset values updated in real-time and ensure trades go through with no delay.
I say "no delay" since polling is normally limited to one second (500ms at a push but the response time is going to add another 1s/500ms or more onto it by default).
Not sure why you would want to do this unless you were developing a web application of some sort.Honestly every cms i have seen is all php, i would love to see one that updates in real time without refreshing.