Skip to content
Back

Realtime: Listener not triggered on updates

  • 0
  • Self Hosted
  • Flutter
  • Realtime
rovolt.
15 Mar, 2026, 10:34

I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtime server" every couple of seconds. I had it working in the past but also not easily. Recently I switched from native nginx to nginx-proxy-manager. Maybe thats an issue? Websockets is enabled and why would the heartbeat work? I tried different channels. This is the basic code:

TypeScript
final subscription = Appwrite().realtime.subscribe([
      'databases.*',
    ]);
    print(
      'eventsListener: subscription created, channels: ${subscription.channels}',
    );

    Appwrite().subscriptions.add(subscription);

    subscription.stream
        .listen(
          (RealtimeMessage message) {
            print('eventsListener: received message');
            print('  channels: ${message.channels}');
            print('  events: ${message.events}');
            print('  payload: ${message.payload}');
          },
        )
        .onError((e) {
          print('eventsListener: stream error: $e');
          log('eventsListener error', error: e);
        });

    print('eventsListener: listening established');

I also tried 'databases.[id].collections.[id].documents' or 'tablesdb.[id].tables.[id]' and different wildcards. No idea what to do.

TL;DR
Developers are encountering an issue where their realtime listener is not triggered on updates. They suspect it might be an issue related to switching from native nginx to nginx-proxy-manager. Despite enabling websockets and receiving heartbeat responses, the listener does not work. They have tried different channel configurations, but the issue persists.
MrT
15 Mar, 2026, 10:54

Yep, it seems to be broken / partially working. https://discord.com/channels/564160730845151244/1482365925742350407

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