Provide polyfill to support EventSource in browser where it is not available.
Download suitable project archive (zip or tar.gz) from release page
- dist/eventsource.min.js (minified version)
To install package from bower registry, type :
bower install eventsource-polyfill
- bower_components/eventsource-polyfill/dist/eventsource.min.js (minified version)
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');
With your web browser visit this test site
Allow sufficient time ( ~ 5 minutes) for the full Test Suite to run…
Contains polyfill module and related unit tests
python server which generates easy to test event stream