
hi , so currently trying to move from pocketbase to appwrite and kinda stuck.. I wanna implement realtime for all collections so users get updated records all the time.. im using treact native sdk and I can fetch collection but realtime doesn't work as I keep getting
Realtime got disconnected. Reconnect will be attempted in 1 seconds. Stream end encountered am I doing something wrong ?
import {Client, Databases} from 'react-native-appwrite';
const fetchEvents = async () => { try { let result = await databases.listDocuments(databaseId, collectionId); let documents = result.documents;
setEvents(documents);
console.log('Documents:', events);
client.subscribe(`collections.${collectionId}.documents`, (response) => {
let updatedDocuments = response.payload;
setEvents(updatedDocuments);
console.log('Updated Documents:', updatedDocuments);
});
} catch (error) {
console.error(error);
}
};
Recommended threads
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
