Back

Server SDK Realtime when?

  • 0
  • Realtime
Craeful
1 Dec, 2023, 13:22

Just wanted to know if Realtime in the Server SDK package is being worked on? Having a poor experience with another provider but looks like it's my only option because i need that realtime stream for my bot to function.

TL;DR
User is asking about the availability of real-time functionality in the Server SDK package. They mention using web platforms as clients and inquire about adding web platforms to their project to use webhooks. Another user suggests using webhooks as the easiest option but mentions that custom functions can be used as well. The user mentions using DART/FLUTTER and building a Discord bot that posts channel messages based on a collection update/create. They ask for guidance on how to make this happen and express their need for real-time functionality. Solution: Another user explains that real-time functionality is not typically needed in a server as it can be achieved by setting up
Drake
1 Dec, 2023, 14:28

Most of the time realtime is not needed in a server because a server can be set up to listen for http requests and Appwrite can send the events via webhooks or functions 🧐

Drake
1 Dec, 2023, 14:29

What's your limitation with doing that?

Craeful
1 Dec, 2023, 14:35

oh, it's not an approach i've used before.

I'm building a discord bot and I want to post a channel message based on a collection update/create. Can you point me in the right direction with your approach how to make that happen?

Craeful
1 Dec, 2023, 14:36

I'm using DART / FLUTTER btw.

I will have a flutter app too that will essentially generate these database events.

Craeful
1 Dec, 2023, 14:37

And I could just use either?

Drake
1 Dec, 2023, 14:37

Webhooks is the easiest. You typically use functions if you need something more custom

Craeful
1 Dec, 2023, 14:38

Allright, i shall give webhooks a go. Thanks!

Craeful
1 Dec, 2023, 14:39

do i need to add the web platform to my project to use webhooks?

Drake
1 Dec, 2023, 14:40

No, web platforms are clients that are connecting to your project.

Craeful
1 Dec, 2023, 14:41

My bad, i got juked by my screen. Back on track.

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