@everyone
I subscribed this channel 'database.${AppwriteConstants.databaseId}.collections.${AppwriteConstants.chatCollection}.documents' my view code is ref.watch(getLatestMessageProvider).when(
data: (realtime) {
if (realtime.events.contains(
'database..collections.${AppwriteConstants.chatCollection}.documents..create')) {
print("new data");
//print(realtime.payload);
//print(realtime.channels);
} else {
print("else");
}
return const Text("data");
},
error: (error, stackTrace) {
return const Center(child: Text("Error"));
},
loading: () {
return const Center(
child: Text("Loading..."),
);
},
), but i can only see in the console subscription: wss://cloud.appwrite.io/v1/realtime?project=645232c7e57e4706fb05&channels%5B%5D=database.645232d4e83ca767613c.collections.645fcdb238ee745038bb.documents and nothing happening when i create new document.