

@Arth now it appears bro

lesgo

how'd you fix it?

@Arth removed unsubcribe

but there was no unsubscribe function called in the previous code

and that shouldn't fix that

@Arth idk then :appwritepeepo:

<:appwritepeepo:902865250427215882>

@Arth but thnx a lot for ur patience

@Arth bro what are events which are apparently returned by these subscribe methods ?

you can find a list of them here https://appwrite.io/docs/events

@Arth gotcha

@Arth just know read through it

@Arth Realtime got disconnected. Reconnect will be attempted in 1 seconds. <empty string>
eventhough this error is thrown , 101 status is maintained

@Arth

show me the code and network tab

@Arth client.subscribe("account", (response) => {
console.log(response);
response.events; // Callback will be executed on account event.
});
changed subscribe to account

there seems to be no error

@Arth bro then lemme try to do something with this , then if some error is thrown i'll ping you up

the subscribe method returns a function, which you can call to unsubscribe when you don't need it. Very important for SPAs, you should keep it in mind when changing components and pages

@Arth ok boss :appwritebow:

Thanks so much @Arth for assisting 🙂
@Berserker is everything good so i can see if i need to close this? 🙂

@Tessa i believe things are fine as of now

[SOLVED] How to setup realtime for web
Recommended threads
- deploy denied!
so i was getting this error this my website, so i setup an empty branch and started from scratch. I Installed " git clone https://github.com/appwrite/starter-fo...
- React Client SDK - CORS issue for Storag...
Hi I've been working on a project for a few weeks with the React Client SDK and OAuth2.0 Google login. All has been working alright, but today I've started gett...
- Realtime didn't work in react native exp...
``` useEffect(() => { const { client } = createClient(); const unsubscribe = client.subscribe(`databases.${process.env.EXPO_PUBLIC_APPWRITE_DATABASE}.t...
