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

I am getting the responses but need to stop the event source on a particular condition how can we do it from client side?

Add sources to npm package. fix #18

The code is working as expected ```ts onmessage(ev) { console.log(ev.data); } ``` However, when using the `ev.data` , i can't access variable outside fetchEventSource. How to handle it ?

The default for `openWhenHidden` is false. This means that the SSE will abort on the client side if the document is hidden, however the default SSE behaviour is that the...

- feat(upgrade): migrate to ESM - feat(upgrade): add exports - feat(upgrade): upgrade to TypeScript 4.9 - feat(upgrade): add node.js support - feat(upgrade): adjust parse.getMessages signature

@RoXuS @firedog1024 @vishwam @microsoftopensource is there anyone around to help ensure that this repository can accept some pull requests? I think that this solution remains widely used, and it would...

Uncaught (in promise) DOMException: The operation was aborted. this error message always show in the console log, even the request is success finish. how to hidden this log or has...

I'm trying to use this library in browser extension service worker. And it gives me error "document is not defined".

Hi all, I have an issue. I create request to the server it sends me response with code 200 after few times the server starts to send me data by...

在苹果端qq浏览器中会报错,看了下是fetch请求在这个浏览器中返回的response不一样,感觉回来的不是一个ReadableStream,没有body,但是有_bodyBlob和_bodyInit字段,响应回来的type是default,数据是一个blob的,然后这个组件读不到body报错了,这个问题怎么处理下可以在苹果端的qq浏览器中返回和其他浏览器一样的响应体ReadableStream