[SOLVED] RealTime API is not working in my application
- 0
- Web
- Databases
- Storage
- Self Hosted
- Users
i can see in dashboard but why im unable to see the log of that function in console
I mean what do you see here?
yeh it shows connected
here you can see the realtime messages sync 2 users but messeges are not syncing
That should work
- Is this a self-hosted or cloud?
- How are you initializing the client?
Everything seems intact let's see what <:appwrite:637383039499894787> Steven would say
k
- did you subscribe only once and after logging in?
- are you creating new documents after subscribing?
- does hte user have access to the newly created document?
- yep
- it can create document but not in realtime eg. when i press send it store in db .
- yes i have given access to any
here is the updated code what i tried
Mmm now that I think of it Can you remove all the new lines inside the string templates?
Change this to one line
oh
like this?
You can keep it on template string like so
client.subscribe(`databases.${DATABASE_ID}.collections.${COLLECTION_ID}.documents`);
Just make sure the string is one line and let us know
gotcha
thank youuuu
Great 😃
[SOLVED] RealTime API is not working in my application
Recommended threads
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- 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...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.