Unsubscribe from a realtime channel
How exactly does a client unsub from a realtime channel (Postgres CDC)?
From the docs, there is
What does the remove part mean, if multiple clients are connected to the channel, and one client does a
And there is also a
I just want that when the commentItem component unmounts, it should stop listening for those postgres changes on the comments table.
From the docs, there is
removeChannel() which unsubs and 'removes' the channel from client.What does the remove part mean, if multiple clients are connected to the channel, and one client does a
removeChannel() with that channels' name, does it also end the channel for the other clients?And there is also a
supabase.channel().unsubscribe() which 'unsubscribes from server events and instructs server to terminate'...I just want that when the commentItem component unmounts, it should stop listening for those postgres changes on the comments table.
