
I already received a realtime connection in my appwrite console:
void subscribe() {
final subscription2 = AppwriteClient.instance.realtime.subscribe(
[
// ignore: lines_longer_than_80_chars
'databases.${AppwriteClient.instance.taramedDatabaseId}.collections.${AppwriteClient.instance.consultationLogCollectionId}.documents',
],
);
subscription2.stream.listen((event) {
print('event $event');
});
// _subscription = ref
// .read(consultationRepoProvider)
// .getConsultationLogStream()
// .listen((consultationLog) => _consultationLogListener(consultationLog),
// onError: _consultationErrorListener, cancelOnError: true);
}
But still I cant receive any data

First time you establish the connection you don't get any data

Once you have an active realtime connection, then you start receiving changes

@Mosh Ontong Was that your issue or you still don't receive anything after the connection is stabilised and a change is performed meanwhile the connection is alive?

I received already but sometimes qhen the app screen stayed atleast 3 to 5 monites the realtime connection is not working again I need to refresh my screen so that it will reconnect to realtime

I think we have the same issue
Recommended threads
- Domain Verification failed
I think i did the step by step well but just not work. When I enter the page I have this error: `Requested host does not match any Subject Alternative Names (S...
- Adding custom domain to Appwrite project
My app is hosted on Vercel on domain todo.velleb.com. On PC, the OAuth logins like GitHub, Discord and Google work and create the account and log in. On mobile ...
- Received duplicate events
I used the React Native SDK to subscribe to `buckets.<ID>.files` on the client side. When the backend creates a file, two events are logged in my client's conso...
