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

Handle watch stream interruptions gracefully without exposing errors to users #809

Open
chacha912 opened this issue May 10, 2024 · 0 comments

Comments

@chacha912
Copy link
Contributor

Description:

Currently, each time the watch stream is interrupted, an error is triggered.

image

We can improve user experience by handling these interruptions more gracefully. The doc.subscribe('connection', callback) already allows us to receive events when the connection is interrupted. We can leverage this to handle the interruptions within the event callback instead of exposing errors to the users.

Why:

  • Users can handle watch stream interruptions more effectively and will no longer see console errors.
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