TypeScript
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
TL;DR
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.Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...