react-native-event-source icon indicating copy to clipboard operation
react-native-event-source copied to clipboard

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

Open true-hamid opened this issue 5 years ago • 1 comments

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

true-hamid avatar Jul 12 '20 13:07 true-hamid

I faced absolutly same problem and here is my solution: https://github.com/jordanbyron/react-native-event-source/pull/30

fatonspb avatar Jul 14 '20 19:07 fatonspb