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

Fix issue [Cannot find name 'ReadableStreamDefaultReadResult' #52](https://github.com/Azure/fetch-event-source/issues/52) > ```ts > let result: ReadableStreamDefaultReadResult; > ``` > > https://github.com/Azure/fetch-event-source/blob/1589ec1f49d96450f3bae9adb20ab4a5b3deb204/src/parse.ts#L24C61-L24C61 > > ``` > > @microsoft/[email protected] build > > tsc && tsc...

class RetriableError extends Error { } class FatalError extends Error { } fetchEventSource('/api/sse', { async onopen(response) { if (response.ok && response.headers.get('content-type') === EventStreamContentType) { return; // everything's good } else...

One of the most common usages for headers is authentication. However, if one provides a token as part of a header to this library, its value will remain the same...

I am using this library as a means to provide a JWT bearer token via the `Authorization` header to my event source endpoint. However I have found that when the...

This make is possible to use this package on a browser extension or NodeJS

Hello everyone, I'd like to inquire about the compatibility of React Native with this project. I've reviewed the documentation and discussions but couldn't find any explicit mentions regarding React Native...

Request: - As a Dev, I would like the ability to add event handlers for specific events dynamically after time of connection, so that I can have other events add...