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

subscribeToMore restart on connection error #12226

Open
ssmilin opened this issue Dec 16, 2024 · 1 comment
Open

subscribeToMore restart on connection error #12226

ssmilin opened this issue Dec 16, 2024 · 1 comment
Labels
🏓 awaiting-contributor-response requires input from a contributor

Comments

@ssmilin
Copy link

ssmilin commented Dec 16, 2024

useSubscription has the functionality to restart on error. Is there a way we can achieve the same functionality in subscribeToMore?"

@phryneas
Copy link
Member

Hi @ssmilin!

useSubscription doesn't have any functionality to automatically restart on error - just a restart function.

In the case of subscribeToMore that's not really necessary, because you can just call subscribeToMore again.

Any kind of reconnecting would usually happen inside the upstream library graphql-ws, which has options for that.

@phryneas phryneas added the 🏓 awaiting-contributor-response requires input from a contributor label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏓 awaiting-contributor-response requires input from a contributor
Projects
None yet
Development

No branches or pull requests

2 participants