server-sent events is a DOM API for receiving push notifications from a server via HTTP. Unlike websockets, they're designed for one-way communication between a Web server and a client (Web browser, another Web server or a client application).
Server-sent events are one way to implement real-time comments display on your posts.
How does one implement server-sent events, especially in combination with a comment updating system?
(stub, to be filled in)
The IRC logs use server-sent events to push new IRC messages to the browser in real time.
Aaron Parecki uses server-sent events to push new posts onto his home page in realtime.
Not Supported in IE
- MDN lists some polyfill libraries that cover IE and older browsers.