Skip to content
Back

Cant get realtime working

  • 2
  • 6
  • Databases
  • Web
  • Realtime
  • Cloud
trevor_143
20 Dec, 2025, 13:33

Hey I nned some help with realtime a gain. I was using client.subscribe(...), and i found out that its depricated then i believe realtime.subscribe(...) is the way but still it failed as well. previously i have been using client.subscribe(...) and it was working well but now nothing works. Plus I couldnt find realtime.subscribe(...) option in the docs. Thanks for all your help and advise in advance 😁

TL;DR
Users were experiencing issues with realtime connections, receiving 'Realtime disconnected' errors. The thread discussed various strategies and potential causes, including possible CORS issues and connection initialization in different files. However, a temporary solution was suggested by adding 'localhost' to platforms, which seemed to resolve the problem for some users. Finally, some users confirmed that after applying this temporary fix, their app was functioning correctly both locally and in production. It was mentioned that a permanent fix would be implemented, and users agreed to update the thread once the issue was resolved.
trevor_143
20 Dec, 2025, 13:34

It has been like this for me for a few days.

20 Dec, 2025, 22:51

What's your code?

21 Dec, 2025, 14:10

Am using Nuxt 4 and pinia

21 Dec, 2025, 14:11

I initialize appwrite in a composable

21 Dec, 2025, 14:14

then import it in a pinia store which i initate and watch a bunch of end points

21 Dec, 2025, 14:16

After initializing the watcher I get these errors constantly in the console

21 Dec, 2025, 14:31

I use edge but I just used chrome and got the same thing

22 Dec, 2025, 06:01

Yes, it was fine before, but I'm pointing out the error.

Appwrite client: 18.0.0 and 20.3.2

22 Dec, 2025, 06:01
2
23 Dec, 2025, 20:14

Hello, Any update ?

27 Dec, 2025, 06:49

Am currently on "appwrite": "^21.5.0", Is there any config update that is not yet available in the docs or .... Cause realtime is still very broken πŸ™πŸΌπŸ™πŸΌ

28 Dec, 2025, 03:42

I just tested my app and it works fine. You can try it here: https://appwrite-explorer.appwrite.network/. Source: https://github.com/stnguyen90/appwrite-explorer

One thing that could be a problem is that subscribe returns a promise that resolves to a function rather than a function itself.

28 Dec, 2025, 07:40

I must be doing something wrong it still doesnt

28 Dec, 2025, 07:42

Is this correct?

28 Dec, 2025, 07:45

I don't get the issue

28 Dec, 2025, 08:03

I also set the Realtime after authenticating the user

28 Dec, 2025, 08:25

I have i tried this out with Web and its still the same event with await realtime.subscribe, I don't the issue πŸ˜”

28 Dec, 2025, 08:30

I have tried Any can read but nothing is working

28 Dec, 2025, 09:45

I just tried version 20 from 21.5, and still the same thing

28 Dec, 2025, 17:31

What does the network tab sockets filter show?

29 Dec, 2025, 07:48
29 Dec, 2025, 07:50

All i got in the console was Realtime disconnected. Re-connecting in 1 seconds. but still no realtime

29 Dec, 2025, 08:34

Here is another one

29 Dec, 2025, 08:36
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