Stream Updates with Server-Sent Events:

Are like websockets but unidirectional, from the server to the client.
Most modern browsers support it.

It can be combined with XmlHttpRequest / ajax if the client needs to
send events to the server, i.e. "emulate" websockets.

>From https://github.com/rwldrn/jquery.eventsource:
"Q. why use EventSource rather than Websockets?
A. EventSource is easier to setup on server (uses http), lighter and
most of the times - that's what you acually need. (via temp01)"

Other resources:

Discussions:
http://www.html5rocks.com/en/tutorials/eventsource/basics/
http://www.prodigyproductionsllc.com/articles/programming/javascript/avoid-using-eventsource-server-sent-events/

A JS library: https://github.com/Yaffle/EventSource
Implemetation on python2/3: https://github.com/niwibe/sse.git
DJango implementation: https://github.com/niwibe/django-sse.git

-- 



Reply via email to