#Realtime Docs are outdated
37 messages · Page 1 of 1 (latest)
Can you provide more information on what's broken?
Also, at the bottom of the page there should be a button or form to submit feedback on the docs.
Look at the example code for the Web sdk
client.subscribe is now deprecated
But still shown in the example
I see
As for this there is only the option to say that it was helpful or not
What's the correct way? (I haven't used realtime myself in any project yet)
That’s what I’m asking
I just tried to fiddle around with the new Realtime class
If you say no, it opens a form
But I’m not sure exactly how to correctly use it
Ah ok good to know
Ah
Let me.... uh... cc @grizzled lotus
I cant even seem to consistently connect to the realtime endpoint using the new sdk
very weird
Yeah, I can't help much, I pinged Tessa sooo... do you have Pro plan by any chances?
nope im self-hosted
Ah yeah, missed the tag
I guess we'll have to wait for a response from the team
If tomorrow this still isn't answered, I will notify the team again just in case
just for context:
const channel = `databases.${process.env.NEXT_PUBLIC_APPWRITE_DATABASE_ID}.tables.${process.env.NEXT_PUBLIC_APPWRITE_COLLECTION_LIGHTS_ID}.rows`;
const realtime = new Realtime(client);
let close: () => Promise<void>;
realtime.subscribe(channel, async (response) => {
console.log(response);
const newLights = await getLightsAction();
setLights(newLights)
}).then(sub => close = sub.close);
return () => close();
Idk if this is how your supposed to use the new sdk 🤷‍♂️
@halcyon sandal when you are back tomorrow, can u set up a task internally ? hoping our new docs person joins sooner than later to help with this. This could be a good first few tasks 🙂
So did I do it the right way or do I really need to wait until someone eventually updates the docs?
Also the messaging docs are outdated too: https://appwrite.io/docs/products/messaging/send-email-messages
@grizzled lotus Any updates? Thank you 
We're working on a number of updates on the Realtime docs, will message as soon as the update is made
Yeah we get that but do you really expect us to wait for an enventual update on the docs instead of just telling us how to use it right here? Im fairly sure that Im not the only one wondering on how to properly use the sdk.
Also waiting for updates. Been trying to get realtime working for several days before coming here and realizing the docs are outdated.
The client.subscribe deprecation and shift to the Realtime class is now reflected in the Realtime docs examples
Huge apologies for the delays on this front
Is the self-hosted version of appwrite capable of handling the new Realtime? It seems to be a bit off, since nothing happens after the trigger. I saw there’s an open issue on GitHub on similar topic (but with the old realtime) https://github.com/appwrite/appwrite/issues/10923
and I also encounter the issue with both old and new realtime on my self host. Seems to work fine on cloud.