Back

RealTime subscription to certain documents

  • 0
  • Flutter
  • Cloud
frankenstein
4 Jan, 2025, 09:46

ive built a chat app, when i pull inboxes, i want to listen to changes to those inboxes. can i add a query to the a subscription, or i have to create a subscription for each inbox, and how can i unsubscribe?

TL;DR
Developers want to create real-time subscriptions for specific documents in their chat app. They are wondering if they can add a query to a subscription or if they need to create separate subscriptions for each document. They also want to know how to unsubscribe from these subscriptions. Solution: Developers can add a query to a subscription to listen to changes in specific documents. To unsubscribe, they simply need to remove the corresponding subscription.
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