Share

WIKIPEDIA ARTICLE

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Server-sent events (SSE) is a technology enabling a browser to receive 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[edit]

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".[3][4]

Overview[edit]

Server-sent events 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[edit]

Web browser support for Server-Sent Events
Browser Supported Notes
Internet Explorer No [5]
Mozilla Firefox Yes Starting with Firefox 6.0 [5]
Google Chrome Yes Starting with Chrome 6 [5]
Opera Yes Starting with Opera 11 [5]
Safari Yes Starting with Safari 5.0 [5]
Microsoft Edge No Under consideration [5]

Libraries[edit]

.Net[edit]

  • Service Stack EventSource library for .Net, with both server and client implementations.

ASP.NET[edit]

  • SignalR - Transparent implementation for ASP.NET.

C[edit]

  • HaSSEs Asynchronous server side SSE daemon written in C (It uses one thread for all connected clients).

Erlang[edit]

  • Lasse EventSource server handler for Erlang's cowboy
  • Shotgun EventSource client in Erlang

Go[edit]

Java[edit]

Node.js[edit]

Objective C[edit]

  • TRVSEventSource - Server-sent events EventSource implementation in Objective-C for iOS and OS X using NSURLSession.

Perl[edit]

PHP[edit]

Python[edit]

  • Python SSE Client - EventSource client library for Python using Requests library.
  • Server Side Events (SSE) client for Python - EventSource client library for Python using Requests or urllib3 library.
  • 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.

Scala[edit]

Swift[edit]

  • EventSource - Server-sent events EventSource implementation in Swift using NSURLSession

See also[edit]

References[edit]

External links[edit]

Disclaimer

None of the audio/visual content is hosted on this site. All media is embedded from other sites such as GoogleVideo, Wikipedia, YouTube etc. Therefore, this site has no control over the copyright issues of the streaming media.

All issues concerning copyright violations should be aimed at the sites hosting the material. This site does not host any of the streaming media and the owner has not uploaded any of the material to the video hosting servers. Anyone can find the same content on Google Video or YouTube by themselves.

The owner of this site cannot know which documentaries are in public domain, which has been uploaded to e.g. YouTube by the owner and which has been uploaded without permission. The copyright owner must contact the source if he wants his material off the Internet completely.

Powered by YouTube
Wikipedia content is licensed under the GFDL and (CC) license