Websockets | JS plugin | Appwrite

Hi there,

I’ve started experimenting WeWeb some days ago and I currently use Appwrite as a BaaS. I’d like to know if it’s possible to use Apwrite realtime feature with Weweb by implementing websockets, maybe using the Javascript datasource plugin. If possible, I’d like to have some simple example implementation, if not, how long would WeWeb team take to have a native plugin implemented like we have for Supabase?

Thanks,
Jizreel

Hi, it’s probably doable, and not that’s hard if you know what you’re doing (still very advanced).

Our supabase plugin is open source, you can check the onSubscribe method to understand how we update the collection on new supabase events.

I think you should still use the REST API plugin to connect your endpoints, but add a workflow on App/Page load to create your websocket connection and put some listeners. The listeners will be used to update your collections on new events for example.