Back

Realtime Subscription - Flutter

  • 1
  • Realtime
punti_z
3 Nov, 2023, 19:47

I just wanted to know how is realtime subscription supposed to be used. If I have to watch 3 different collections A B and C. Should I request a realtime subscription passing an array with all 3 collections or can I request each collection as and when its required.

I have noticed that when I request realtime subscription for the 2nd collection the earlier subscription stops receiving realtime messages.

Is that expected behavior ?

TL;DR
The user is asking about a bug in the Flutter SDK where subscribing multiple times breaks the connection. The solution suggested is to use separate realtime instances at the moment. The user also inquires about how to use realtime subscription for multiple collections and mentions that when subscribing to a second collection, the earlier subscription stops receiving realtime messages. The user wants to know if this is the expected behavior. There is no solution provided in the thread.
Drake
5 Nov, 2023, 21:38

There's a bug in the flutter sdk where subscribing multiple times breaks the connection. You'll have to use separate realtime instances at the moment

punti_z
5 Nov, 2023, 21:41

Thanks for clarifying Steven, any github issue I can upvote ? Is this an issue being worked on ?

punti_z
10 Nov, 2023, 22:12

Thanks, left a comment

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more