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
- Helping in unblock my account
I deleted my Appwrite Cloud account that was linked via GitHub. Now I activated my GitHub Student Pack and want to sign up again using the same GitHub account, ...
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...
- Request for temporary 3 to 4 hours datab...
Hi Appwrite Team, I hope you are doing well.We are an early-stage startup currently running on Appwrite Cloud. We have unfortunately exhausted our database rea...