hello, in my code, Realtime functions does not work, other times it will work, i first thought it was due to unstable internet connection, so i created a question and i was told to use connective_plus package to use to detect the connection of the network then subscribe again, which i did and it work.
but now, the realtime will not even work, sometimes it will, the pattern is not consistent
here is my code below
final liveStreamApi = ref.watch(liveStreamApiProvider);
return liveStreamApi.getLatestLiveStreamers(myUserId: userId);
});
@override
Stream<RealtimeMessage> getLatestLiveStreamers({required String myUserId}) {
return _realTime.subscribe(['databases.${Common.dataBasesId}.collections.${Common.collectionLiveStreamingId}.documents']).stream;
}```
here is how i listen to it
Recommended threads
- Cloud function deployment failures
When I run appwrite push functions, select the function I want to deploy, confirm with a YES, is starts deploying but goes into error. I need to repeat the ste...
- 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...
- One to many 2 way, console UI not correc...
Hey, seems I'm facing the exactly same issue with this one: https://github.com/appwrite/appwrite/issues/6016 Since this Github issue stay open for so long, let ...