8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First, thank you so much for this code!
I don't think I'm doing anything fancy, but I'm seeing what look like reconnection attempts even after I've called EventSourceClient.close.
EventSourceClient.close
const sseSource = createEventSource({ url: apiUrl, method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(...) }); console.log(1); for await (const event of sseSource) { console.log(2, sseSource.readyState); // ... } else if (eventPayload.type === 'end') { break; } } sseSource.close(); console.log(3, sseSource.readyState);
I see the code break out of the loop and I see that the readyState is 'closed', but I still keep seeing repeated requests to the apiUrl.
apiUrl
Request call stack window.fetch @ fetcher.js?v=9a498923:65 connect @ eventsource-client.js?v=9a498923:153 setTimeout (async) scheduleReconnect @ eventsource-client.js?v=9a498923:200 onFetchResponse @ eventsource-client.js?v=9a498923:217 Promise.then (async) connect @ eventsource-client.js?v=9a498923:153 setTimeout (async) scheduleReconnect @ eventsource-client.js?v=9a498923:200 onFetchResponse @ eventsource-client.js?v=9a498923:217 Promise. then (async) connect @ eventsource-client.js?v=9a498923:153 setTimeout (async) scheduleReconnect @ eventsource-client.js?v=9a498923:200 (anonymous) @ eventsource-client.js?v=9a498923:156
Thank you!
The text was updated successfully, but these errors were encountered:
3b13da7
Thank you for the praise, always welcome :)
You're totally right. I've fixed this issue and added tests to prevent this from regressing. Released as v1.1.1
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
First, thank you so much for this code!
I don't think I'm doing anything fancy, but I'm seeing what look like reconnection attempts even after I've called
EventSourceClient.close
.I see the code break out of the loop and I see that the readyState is 'closed', but I still keep seeing repeated requests to the
apiUrl
.Thank you!
The text was updated successfully, but these errors were encountered: