4 ms·
If notifications only go one way, server side events should also be considered. ...but I don't remember the advantages anymore :)
by swah 12y ago
If notifications only go one way, server side events should also be considered.
...but I don't remember the advantages anymore :)
- rakoo 12y agoHave 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/ http://www.html5rocks.com/en/tutorials/eventsource/basics/
- manishsharan 12y agoOnce 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.