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

Hook into subscription error events #53

Open
harrietwaters opened this issue Apr 27, 2021 · 0 comments
Open

Hook into subscription error events #53

harrietwaters opened this issue Apr 27, 2021 · 0 comments

Comments

@harrietwaters
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Errors that bubble up from subscriptions (TCP auth, DNS, whatever) are not handled by the library or exposed to the client.

Describe the solution you'd like
A generic handler should be attached to the error event on all subscriptions that catches and re-throws the error. This should somehow also be exposed to the client (error handling strategy doesn't feel right but I'm open to convincing).

Describe alternatives you've considered
Instead of re-throwing we could also just close and re-open the subscription.

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