Skip to content

bobheadlabs/node-eventsource-http2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-eventsource-http2

why

Eventsource nodejs client https://github.com/EventSource/eventsource doesn't support http/2.

This package fixes it build on top of http2, so it fully supports it

install

npm install node-eventsource-http2

usage

Spec

const EventSource = require('node-eventsource')
const sse = new EventSource('your.endpoint/sse');
sse.addEventListener('type', (event) => {
  // your code goes here
})

About

Nodejs EventSource implementation with http2 support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.6%
  • TypeScript 47.4%