MCPcopy Index your code
hub / github.com/amvtek/EventSource

github.com/amvtek/EventSource @v0.9.7

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.9.7 ↗ · + Follow
180 symbols 346 edges 13 files 35 documented · 19%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Core symbols most depended-on inside this repo

getJasmineRequireObj
called by 40
javascript/lib/jasmine-2.0.0/jasmine.js
createDom
called by 35
javascript/lib/jasmine-2.0.0/jasmine-html.js
msg
called by 12
test_server/evsutils/log.py
find
called by 8
javascript/lib/jasmine-2.0.0/jasmine-html.js
printNewline
called by 8
javascript/lib/jasmine-2.0.0/console.js
addEventListeners
called by 8
javascript/spec/eventsourceSpec.js
setTimeout
called by 7
javascript/lib/jasmine-2.0.0/jasmine.js
fail
called by 7
javascript/lib/jasmine-2.0.0/jasmine.js

Shape

Function 125
Method 43
Class 12

Languages

TypeScript66%
Python34%

Modules by API surface

javascript/lib/jasmine-2.0.0/jasmine.js92 symbols
test_server/evsutils/protocol.py22 symbols
test_server/evsutils/utils.py19 symbols
test_server/evsutils/log.py17 symbols
javascript/lib/jasmine-2.0.0/jasmine-html.js12 symbols
javascript/lib/jasmine-2.0.0/console.js8 symbols
test_server/twisted/plugins/test_eventsource.py3 symbols
javascript/src/eventsource.js3 symbols
javascript/spec/eventsourceSpec.js3 symbols
javascript/lib/jasmine-2.0.0/boot.js1 symbols

For agents

$ claude mcp add EventSource \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact