Skip to content
Init is here / May 19 - 23
Back

Realtime subscriptions working live on site but no longer on localhost

  • 0
  • Web
  • Cloud
Olly
10 May, 2024, 19:08

Despite adding two web apps, one for localhost and one for my live site, websockets are only firing for live site now...

I subscribed to events on all documents in one of my database collections. Everything works great in the production environment but now no longer displaying in my console for localhost. I can't for the life of me figure out why...

TL;DR
Realtime subscriptions are functioning on live site but not on localhost. Check network tab in browser dev tools with WS filter enabled. Subscriptions for database collection work on production but not on localhost.
Steven
10 May, 2024, 19:18

would you please try opening your browser dev tools, switching to the network tab, switching the filter to WS. Then, start your app and subscribe. What do you see?

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