Open
Description
Describe the bug
When listening to a channel that already has a subscription, both the first subscription and the second subscription closes. With the js library, only the first one closes and the second one remains connected.
To Reproduce
Steps to reproduce the behavior:
- Subscribe to the same channel twice
supabase.channel('channel').on(...).subscribe(); // This one closes
supabase.channel('channel').on(...).subscribe(); // This one also closes, but should actually remain connected.
Expected behavior
The last connection made to the same channel should remain connected.
supabase_flutter version:
- Version [e.g. 1.0.0-dev.9]
Additional context
Also, it is not very apparent that you can only have 1 connection per channel. Maybe we can add more commented docs about it.