react-native-event-source
react-native-event-source copied to clipboard
EventSource is not dispatching an error event incase server throws an error
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
I faced absolutly same problem and here is my solution: https://github.com/jordanbyron/react-native-event-source/pull/30