S
Supabase2mo ago
miko

Best way to handle realtime connections?

Currently im just using broadcast to both send out message and receive it. It works perfectly fine even when browser tab is in background. Only if i close/sleep my mac and comeback to the tab that the connection first has error then times out; and does not reconnect automatically. What is theindustry standart for supabase realtime reconnections; or is it more advisable to just have an alert to refresh website?
1 Reply
garyaustin
garyaustin2mo ago
You have to deal with re-connection after errors. I use the visibility property in browser with JS. Not clear though if you have to worry about missed data or not as you don't really say what broadcast method you are using.

Did you find this page helpful?