News for hackers. Stuff that matters.
Re:You might not need a WebSocket by swah on Thursday July 10, 2014 @12:49PM (#8015665)
If notifications only go one way, server side events should also be considered.

...but I don't remember the advantages anymore :)

Re:You might not need a WebSocket by rakoo on Thursday July 10, 2014 @01:15PM (#8015848)
Have a look at this [0]:

- Automatic reconnection

- Event ids

- Straightforward protocol built on plain old HTTP

[0] http://www.html5rocks.com/en/tutorials/eventsource/basics/

Re:You might not need a WebSocket by manishsharan on Thursday July 10, 2014 @01:50PM (#8016046)
Once you introduce a websocket on your html simple page app, it makes sense to send all the user/browser side events to server over the websocket as well. Use socket.io like aggressive websocket connectivity tests and failover to normal REST ajax.