Skip to content

Handling reconnections and errors for realtime #492

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

Closed
bananacity opened this issue May 8, 2025 · 1 comment
Closed

Handling reconnections and errors for realtime #492

bananacity opened this issue May 8, 2025 · 1 comment
Labels
question Further information is requested

Comments

@bananacity
Copy link

bananacity commented May 8, 2025

Hi, I have a few realtime subscriptions currently setup but I want to integrate proper reconnection logic.

I found this in a github discussion https://gist.github.com/Cikmo/bcba91318ba19dae1f914b32bf2b94b2 however I'm unsure if it works with nuxt 3 and the module as I end up with a timeout error after about 10 seconds after a successful connection.

Is there a recommended way to handle this for production to handle reconnections and errors, or some demo code people are using for production to handle this? I tried to write my own reconnection logic but I ended up with it crashing after some time on CHANNEL_ERROR likely due to my code

@bananacity bananacity added the question Further information is requested label May 8, 2025
@bananacity
Copy link
Author

That code does work, I just had to redo my own code

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

No branches or pull requests

1 participant