Nodejs EventSource implementation with http2 support
npm install @bobheadxi/node-eventsource-http2This package fixes it build on top of http2, so it fully supports it
npm install node-eventsource-http2
`usage
`js
const EventSource = require('node-eventsource')
const sse = new EventSource('your.endpoint/sse');
sse.addEventListener('type', (event) => {
// your code goes here
})
``