Flutter Developer
I have a working stream for one of my collections, but setting up the second one never works. Logging for my first stream that works look like:
First Stream: Instance of '_BroadcastStream<RealtimeMessage>'I/flutter (24668): AppwriteRealtime: Allow self-signed certificateI/flutter (24668): subscription: wss://cloud.appwrite.io/v1/realtime?project=************I can see the subscription activated and it works as intended. On the second one, I am following the exact same process and just feeding a different collection:
@override Stream<RealtimeMessage> getLatestProfile() { final stream = _realTime.subscribe([ 'databases.${AppWriteConstants.databaseId}.collections.${AppWriteConstants.usersCollectionId}.documents' ]).stream; print('Stream $stream'); return stream; }
Second Stream: Instance of '_BroadcastStream<RealtimeMessage>'I/flutter (24668): AppwriteRealtime: Allow self-signed certificateI/flutter (24668): subscription: nullThe subscription just returns null everytime. Not sure if it matters, but I have confirmed both collections have the same permissions, and ensured I don't have any typos and the database/collection Ids are infact correct, I've even tried hard coding them.