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

After doing send response data from api back to the post call, the onmessage function is not doing anything when we use it on hosted application on azure , can...

https://github.com/Azure/fetch-event-source/blob/main/src/fetch.ts#L19. Correct me if I am wrong byt I dont see any reason to have Promise as return type here, and it forces you to add artifical `return Promise.resolve()` or...

Request Headers sent Accept: application/json, text/event-stream Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSIsImtpZCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSJ9.eyJhdWQiOiJhcGk6Ly82MjE3YzRjYy01Mjg2LTRjMTktYjUyMi01MTEyYTRhNTlmMWMiLCJp @Slf4j @Validated @RestController @CrossOrigin(origins = "http://localhost:3000") @RequiredArgsConstructor public class ResourceController { @GetMapping(value = "/event/resources/usage", produces...

I have SSE-endpoint `http://localhost/sse-endpoint` that returns next data: ``` data:{text: "He"} id:0 data:{text: "ll"} id:2 data:{text: "o,"} id:4 data:{text: " u"} id:6 data:{text: "se"} id:8 data:{text: "r!"} id:10 ``` I...

``` const abortController = new AbortController() await fetchEventSource( `https://xxx/xx/xx/xx?query=${questionSended}&dialog_id=${this.currentDialogID}&is_stream=1`, { headers: { Authorization: userinfo.token }, signal: abortController.signal, openWhenHidden: true, onopen: async response => { console.log('onopen', response) if (response.status !== 200)...

我在A页面点击按钮才会去执行fetchEventSource,刚开始进入页面调用一切正常。 当我点击A页面中的跳转路由按钮后用的react-router的useHistory跳转。再回到A页面 再次点击按钮调用fetchEventSource会报错,是fetchEventSourc().catch() catch中报出的错误:error TypeError: Cannot convert undefined or null to object at getOwnPropertySymbols ()

### Is this project abandoned by Microsoft? The last release has been ages ago. There are PRs open since ages and unanswered questions. I am using this library because this...

I need to do something when the stream is complete? onclose doesnt seem to be firing any help appreciated

Hello. I'm aware this topic has been raised many times here already, and I have read all of those issues with no success. Indeed, in most cases those issues have...