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
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...