Skip to content
New issue

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

It attempts to reconnect if the event stream is manually cancelled e.g. by a timer. #9

Open
j0j00 opened this issue Jan 27, 2019 · 1 comment

Comments

@j0j00
Copy link

j0j00 commented Jan 27, 2019

I believe this is due to the onError call here.

The (_) error is:
HttpException: Connection closed while receiving data, uri = http://127.0.0.1/redacted.

@j0j00
Copy link
Author

j0j00 commented Jan 27, 2019

I believe there should be a callback that allows the user to determine whether to retry the connection/update the event source.

For example, if the response is a 401 http response, there's no point retrying indefinitely - sample use-case: the URL requires a special authentication query string that needs updating in order for the events to work.

The user should be able to update the url or close the connection and retry it themselves. This functionality is not currently possible.

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

No branches or pull requests

1 participant