4 ms·
WebSockets are super easy to use and the proper solution to real time data communication between browser and server. Yes, there are other ways to accomplish th
by ebbv 12y ago
WebSockets are super easy to use and the proper solution to real time data communication between browser and server.
Yes, there are other ways to accomplish this, but why would you choose a kludgey way like long polling when an elegant solution is available? It makes no sense to me.
- 650REDHAIR 12y agoWebSockets are super easy to use (we still love it offer support for it), but if your users are on older devices or browsers you're going to run into problems. You also have to take into consideration different network issues, for instance last year Verizon 3G blocked WebSockets without any documentation. Or fragile wireless networks where the socket will break.
- nailer 12y agoSSE is also a proper solution. If you have a REST setup, you can use the same HTTP resources for both pulling and pushing.