Server-sent events

From Wikipedia, the free encyclopedia

Server-sent events is a technology for where a browser gets automatic updates from a server via HTTP connection. The Server-Sent Events EventSource API is standardized as part of HTML5[1] by the W3C.

History

The WHATWG Web Applications 1.0 proposal[2] included a mechanism to push content to the client. On September 1, 2006, the Opera web browser implemented this new experimental technology in a feature called "Server-Sent Events".

Overview

Server-Sent Events (SSE) is a standard describing how servers can initiate data transmission towards clients once an initial client connection has been established. They are commonly used to send message updates or continuous data streams to a browser client and designed to enhance native, cross-browser streaming through a JavaScript API called EventSource, through which a client requests a particular URL in order to receive an event stream.

Web browsers

Web browser support for Server-Sent Events
Browser Supported Notes
Internet Explorer No [3]
Mozilla Firefox Yes Starting with Firefox 6.0 [4]
Google Chrome Yes [3]
Opera Yes Starting with Opera 11 [3]
Safari Yes Starting with Safari 5.0 [3]

Libraries

  • TRVSEventSource - Server-sent events EventSource implementation in ObjC for iOS and OS X using NSURLSession.
  • Cramp - Ruby/EventMachine based server implementation for WebSocket and Server-Sent Events.
  • django-sse - HTML5 Server-Sent Events integration for Python/Django.
  • flask-sse - A simple Flask extension for HTML5 server-sent events support, powered by Redis.
  • sse - Server Sent Events protocol implementation on python2 and python3 in the same codebase.
  • event-source-library - Server Sent Events protocol implementation in python2 with tornado. Client and server implementations.
  • SignalR - Transparent implementation for ASP.NET.
  • Mojolicious - Perl real-time web framework.
  • Hoa\Eventsource - PHP Server-Sent Events implementation.
  • sse-stream - Node.js/Browserify Server-Sent Events implementation (client and server).
  • partial.js - partial.js is node.js web application framework - supports Server-Sent Events, WebSockets (RFC 6455) and multipart/x-mixed-replace.

See also

References

External links

This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.