EventSource
EventSource copied to clipboard
EventSource "polyfill" with custom headers
Hi! Having the license stored in a file named `LICENSE` is convention throughout open source. Automated tooling for extracting licenses, such as [`license-check`](https://www.npmjs.com/package/license-check), have a hard time when the license...
Hi line 127: `var contentTypeRegExp = /^text\/event\-stream;?(\s*charset\=utf\-8)?$/i;` but the server can send `text/event-stream;element-type="application/json"` or others types of elements. `;?(\s*charset\=utf\-8)?` is not used in your code. I suggest to relax the...
Hi I started to use this Polyfill and so far so good, except for one little thing: The events are working and I could replace the standard EventSource for this...
You might want to remove that.
Hi, 1.When server gets stopped, then eventsource connection will be lost. But when the server(SSE) up, eventSource is not reconnecting automatically until we refresh the webpage. 2. After timeout like...
Currently the lastEventId is set as query parameter. But it should also set the header field 'Last-Event-ID' https://html.spec.whatwg.org/multipage/iana.html#last-event-id Its already in the code, but commented: https://github.com/sguiheux/EventSource/blob/eb04814bc359ac5811094d4aa91447b502316c22/eventsource.js#L572
Is it possible to provide a way to disable timeout. This is essential for continuous streams such as notifications. Currently if I set the heartbeatTimeout to 0 it's still being...
Before this fix the constructor fails for statement 'options.heartbeatTimeout' if 'options' is not defined.
1) If the server is down the preflight generated a ERR_CONNECTION_REFUSED can you please propagate it? so that we can handle it on the app level? 2) Can you please...