News for hackers. Stuff that matters.
Re:You might not need a WebSocket by ebbv on Thursday July 10, 2014 @01:19PM (#8015861)
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.

Re:You might not need a WebSocket by 650REDHAIR on Thursday July 10, 2014 @01:27PM (#8015919)
WebSockets 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.

Re:You might not need a WebSocket by nailer on Thursday July 10, 2014 @04:30PM (#8017071)
SSE is also a proper solution. If you have a REST setup, you can use the same HTTP resources for both pulling and pushing.