© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
4 replies
Ted H

Supabase realtime reconnect flow suggestion

Hi,

I'm currently designing the realtime reconnect logic for my react native app, so what I have been using is to listen to the status change like below

.subscribe((status) => {
 ... Do something...
}
.subscribe((status) => {
 ... Do something...
}

What I'm not sure is that do I have to tackle both CHANNEL_ERROR and TIMEOUT events? Because as far as I have tested, no matter it's a TIMEOUT or a CHANNEL_ERROR event, it will always follow by a CLOSED event at the end. Instead of taking care of timeout and channel_error, can I just wait until the channel is closed by the server (CLOSED event received) and then do the reconnection logic?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase realtime Changes?
SupabaseSSupabase / help-and-questions
3w ago
Supabase Realtime filter
SupabaseSSupabase / help-and-questions
4y ago
Supabase Realtime Usage (postgres/supabase_admin)
SupabaseSSupabase / help-and-questions
4w ago
docker stop supabase-realtime
SupabaseSSupabase / help-and-questions
2mo ago