eventsource-polyfill

WebJar for eventsource-polyfill

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

eventsource-polyfill
Last Version

Last Version

0.9.6
Release Date

Release Date

Type

Type

jar
Description

Description

eventsource-polyfill
WebJar for eventsource-polyfill
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/amvtek/EventSource

Download eventsource-polyfill

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/eventsource-polyfill/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>eventsource-polyfill</artifactId>
    <version>0.9.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/eventsource-polyfill/
implementation 'org.webjars.npm:eventsource-polyfill:0.9.6'
// https://jarcasting.com/artifacts/org.webjars.npm/eventsource-polyfill/
implementation ("org.webjars.npm:eventsource-polyfill:0.9.6")
'org.webjars.npm:eventsource-polyfill:jar:0.9.6'
<dependency org="org.webjars.npm" name="eventsource-polyfill" rev="0.9.6">
  <artifact name="eventsource-polyfill" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='eventsource-polyfill', version='0.9.6')
)
libraryDependencies += "org.webjars.npm" % "eventsource-polyfill" % "0.9.6"
[org.webjars.npm/eventsource-polyfill "0.9.6"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.9.6