fetch-event-source icon indicating copy to clipboard operation
fetch-event-source copied to clipboard

A better API for making Event Source requests, with all the features of fetch()

Results 70 fetch-event-source issues
Sort by recently updated
recently updated
newest added
trafficstars

When fetch-event-source loses it's connection to the server, it tries to reconnect rather aggressively. Given enough clients, this continious repeating traffic pattern may pose an unneccesary risk of overloading a...

When you build the lib could you please not omit comments from interfaces ![image](https://github.com/Azure/fetch-event-source/assets/19407350/32d911b0-8a7d-4239-b0ea-a4df06c173f7) pls change to false https://github.com/Azure/fetch-event-source/blob/main/tsconfig.json#L13C10-L13C24 It will be helpful to have a description above the property...

The main reason I started using this library is to do SSE events that require `POST`. As you can imagine, those have state and shouldn't be reset by the client...

for examole: data: exp the space in front of exp will be subArray. `const valueOffset = fieldLength + (line[fieldLength + 1] === 32 ? 1 : 1);` it should be:...

i meet a question.when i change the tab. then the sse was quit and get to error . i want the sse work as normal when i change tab

A tiny example update replacing equal condition for `EventStreamContentType` by checking with `startsWith` function. ```diff - response.headers.get('content-type') === EventStreamContentType + response.headers.get('content-type').startsWith('text/event-stream') ``` covers cases when charset present: `Content-Type: text/event-stream; UTF-8`....

when fetchFn return a 400 status code , catch will trigger the settimeout run create,so,curRequestController will be create again, and then ...loop again ... version 3.0.1 I see there is...

Currently fetchEventSource is not supported by IE11, can we have the polyfill so that it gets supported in IE11 as well.