Check whether or not supabase channel has connected?
Hello :)
I am a bit stuck and wanted to ask whether or not it is possible to check if a channel is subscribed and listens. I currently check this in the callback of the
I am on version 2.0.0-rc.8 of the js sdk if that matters. I am also aware of "double useEffect renders" in React 18s strict mode (described here: https://github.com/supabase/realtime-js/issues/169).
Thanks in advance
I am a bit stuck and wanted to ask whether or not it is possible to check if a channel is subscribed and listens. I currently check this in the callback of the
.subscribe method, but Insert events are only received a few seconds after the callback is triggered (and returns "SUBSCRIBED").I am on version 2.0.0-rc.8 of the js sdk if that matters. I am also aware of "double useEffect renders" in React 18s strict mode (described here: https://github.com/supabase/realtime-js/issues/169).
Thanks in advance