TobiasOriginal post
Rank 2: Process
Dart
void _subscribeToSubmittedMediaAppend() { final realtime = Realtime(client); realtimeMediaValidationSubscription = realtime.subscribe( ['databases.$appDatabase.collections.$roomMediaCollection.documents']); // Listen to changes realtimeMediaValidationSubscription?.stream.listen((event) {Why doesn't this work? it's not getting called
Summary
Developers are trying to implement realtime updates for a specific collection in their Dart code, but the function is not being called. The issue might be related to how the `subscribe` method is being used. To fix this, developers should ensure that the subscription path is correct by verifying the database, collection, and document names. Additionally, they should double-check that the Realtime client is properly initialized and connected.