Skip to content

Provide polyfill to support EventSource in browser where it is not available

License

Notifications You must be signed in to change notification settings

zabrowarnyrafal/EventSource

 
 

Repository files navigation

This is fork of EventSource Polyfill. Orignal work can be found here: https://github.com/amvtek/EventSource. It contains only bugfixes.

EventSource Polyfill

Provide polyfill to support EventSource in browser where it is not available.

Installing

from source

Download suitable project archive (zip or tar.gz) from release page

Include in your html documents one of the following javascript file:

  • dist/eventsource.js
  • dist/eventsource.min.js (minified version)

Using bower package manager

To install package from bower registry, type :

bower install eventsource-polyfill

Include in your html documents one of the following javascript file:

  • bower_components/eventsource-polyfill/dist/eventsource.js
  • bower_components/eventsource-polyfill/dist/eventsource.min.js (minified version)

Using npm package manager

To install package from npm registry, type :

npm install eventsource-polyfill

Note that this package may only be used with in browser application.

If you are using browserify , you just have to require this package in your main module…

// load (Polyfill) EventSource, in case browser does not support it...
require('eventsource-polyfill');

Run the tests now

With your web browser visit this test site

Allow sufficient time ( ~ 5 minutes) for the full Test Suite to run…

Project content

dist/
built version of javascript modules

javascript/
Contains polyfill module and related unit tests

test_server/
python server which generates easy to test event stream

docs/
documentation wiki

About

Provide polyfill to support EventSource in browser where it is not available

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.5%
  • Python 14.1%
  • CSS 2.6%
  • HTML 1.8%