Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Created by Opera, Server-Sent Events standardizes Comet technologies. The standard intends to provide you with native, real-time updates through a simple JavaScript API called EventSource, which connects to servers that asynchronously push data updates to clients via HTTP streaming. Server-Sent Events uses a single, unidirectional, persistent connection between the browser and the server.
Unlike the WebSocket API, Server-Sent Events and the EventSource object use HTTP to enable real-time
server push capabilities within your application. HTTP streaming predates
the WebSocket API, and it is often referred to as Comet or server push.
The exciting part here is that the Server-Sent Events API intends to
standardize the Comet technique, making it trivial to implement in the
browser.