A browser polyfill for W3C EventSource (
Last updated 5 years ago by amvtek .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eventsource-polyfill 
SYNC missed versions from official npm registry.

EventSource Polyfill

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


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...

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

built version of javascript modules

Contains polyfill module and related unit tests

python server which generates easy to test event stream

documentation wiki

Current Tags

  • 0.9.6                                ...           latest (5 years ago)

2 Versions

  • 0.9.6                                ...           5 years ago
  • 0.9.5                                ...           5 years ago
Maintainers (1)
Today 1,185
This Week 8,108
This Month 21,120
Last Day 2,194
Last Week 11,237
Last Month 48,587
Dependencies (0)
Dev Dependencies (3)
Dependents (258)

Copyright 2014 - 2016 © |