Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

EventSource is not dispatching an error event incase server throws an error #31

Open
true-hamid opened this issue Jul 12, 2020 · 1 comment

Comments

@true-hamid
Copy link

true-hamid commented Jul 12, 2020

When polling, in any case where a server throws 401 or 500 or any error response.
Expected behavior:
An error event is to be dispatched.
What is happening:
pollAgain function is called indefinitely

@fatonspb
Copy link

I faced absolutly same problem and here is my solution: #30

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants