Back

Integrating appwrite realtime feature

  • 0
  • Web
  • Cloud
APE FREN
4 Jun, 2024, 20:25

i want to use the appwrite realtime feature for the context of commenting and messaging

TL;DR
Appwrite's realtime feature broadcasts events to subscribers through specific channels, allowing for real-time updates on changes in documents or collections. To integrate this for commenting and messaging, developers can use the Appwrite real-time functionality to listen to and broadcast changes in these scenarios. However, currently, real-time communication is supported only from the server to the client side.
Binyamin
4 Jun, 2024, 20:33

As of now, you can use Appwrite real-time only from one side server->client

APE FREN
4 Jun, 2024, 20:39

PLease explain better, much interesting with examples

Binyamin
4 Jun, 2024, 20:52

Appwrite realtime will broadcast events to all subscribers through change-channel So, for example, you can initialize a subscriber in your app to listen to a collection/document channel. Then, all changes/deletions/additions to the collection events will be broadcast through that channel.

In messaging example You can add documents to each collection. This most be done through API, then the change will be broadcast in realtime

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