Skip to content
Back

Realtime Not Working

  • 0
  • Flutter
  • Realtime
  • Cloud
rlee128
28 Aug, 2025, 20:58

There seems to be an issue with realtime. Last night it was working for a few hours then stopped. Checked this morning and it was working no code change and now its not working again. I get the flutter: Received heartbeat response from realtime server message and also get a print of the web socket url but no data when there is an update made to a location I am listening to either via the app or dashboard.

TypeScript
subscription = realtimeSignal.value!
        .subscribe([
          'databases.${Constants.dbID}.tables.${Constants.userDB}.rows.${currentUserSession.value!.$id}',
          // 'databases.${Constants.dbID}.collections.${Constants.tasksDB}.documents',
          // 'databases.${Constants.dbID}.collections.${Constants.transactionsDB}.documents',
          // 'databases.${Constants.dbID}.collections.${Constants.shoppingListDB}.documents',
          // 'databases.${Constants.dbID}.collections.${Constants.shoppingItemsDB}.documents',
          // 'databases.${Constants.dbID}.collections.${Constants.recipesDB}.documents',
          // 'databases.${Constants.dbID}.collections.${Constants.budgetsDB}.documents',
          // 'databases.${Constants.dbID}.collections.${Constants.accountsDB}.documents',
        ])
        .stream
        .listen((RealtimeMessage message) {
          log('Received realtime message tab: ${message.payload}');
          if (message.events.contains('databases.${Constants.dbID}.tables.${Constants.userDB}.rows.${currentUserSession.value!.$id}.update')) {
            currentUserSignal.value = User.fromMap(message.payload);
          }
          // Handle the realtime message
        });
TL;DR
Realtime feature stopping and starting intermittently. Developers receiving heartbeat response but no data updates. Check code for any errors or changes. Subscriptions and listeners set up correctly. Possible issue with websocket connection.
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