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

Describe how to handle errors for realtime channel subscriptions #250

Open
enyo opened this issue Aug 19, 2022 · 5 comments
Open

Describe how to handle errors for realtime channel subscriptions #250

enyo opened this issue Aug 19, 2022 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@enyo
Copy link

enyo commented Aug 19, 2022

Improve documentation

Link

https://supabase.com/docs/reference/javascript/next/subscribe

Describe the problem

There is no description anywhere on how to handle errors when subscribing. In my app, sometimes subscriptions don't work, and I have no idea on how to handle that. There is a channel.onError method, but it doesn't provide any error. So what should I do in the case subscriptions don't work?

@enyo enyo added the documentation Improvements or additions to documentation label Aug 19, 2022
@lschaupp
Copy link

bump

@w3b6x9 w3b6x9 transferred this issue from supabase/supabase-js Sep 5, 2023
@StevePhuc
Copy link

did anyone find document about this. have the same issue also channel.onError return null.

@filipecabaco
Copy link
Member

Sorry for the delay. Will improve the documentation this week and update when the PR is open

@lucaspluchon
Copy link

Documentation never updated.

@joshualyness
Copy link

Bump. Quite important for handling channels properly, and as of yet I've not been able to find out how to handle channel errors.

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

No branches or pull requests

7 participants