SSE (from the English Server-Sent Events - "events sent by the server") is a technology for sending notifications from the server to a web browser in the form of DOM events. The Server-Sent Events technology is now standardized as part of HTML5 [1] by the W3C organization.
History
The Web Applications 1.0 [2] proposal from the WHATWG included a mechanism for "pushing" information to the client. On September 1, 2006, the Opera browser implemented this experimental technology, calling it "Server-Sent Events".
Overview
SSE is a standard that describes how to start transferring data to clients from the moment the client establishes the first connection. The standard is widely used for sending update messages or for sending continuous data streams to a client’s browser. It is designed to improve cross-browser broadcasting via a JavaScript API called EventSource; with its help, the client sets the URL for receiving the event stream of interest.
Web browsers
| Browser | Supported by | Remarks |
|---|---|---|
| Internet Explorer | Not | [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
- Cramp - Server implementation of WebSocket and Server-Sent Events technologies (Ruby / EventMachine)
- django-sse module for django
- sse - implementation for python2 and python3
- event-source-library - SSE implementation for tornado / python2
- SignalR is an implementation for ASP.NET.
- Mojolicious - implementation for Perl
- Hoa \ Eventsource - implementation for PHP
See also
- Push technology
- Comet
Notes
- ↑ Server-Sent Events . W3C (April 10, 2013). Archived April 21, 2013.
- Web Web Applications 1.0 specification . Archived April 21, 2013.
- ↑ 1 2 3 4 When can I use ... Server-sent DOM events
- ↑ Bug 338583 - Add support for Server-Sent DOM Events (Remote Events)
Links
- HTML5 server-sent events Draft specification from W3C. (eng.)
- Using server-sent events . An example of using SSE from the Mozilla Developer Network. (eng.)
- Per .: I. Ants. Server-Sent Events (Events (March 29, 2013). - Link to translate specification. The appeal date is April 15, 2013. Archived April 21, 2013.