
I'm trying to subscribe to changes in a collection but im getting ReferenceError: window is not defined
.
Here's the code i'm using
const { Client } = require("appwrite");
const client = new Client()
.setEndpoint("https://aor.rxserver.net/v1")
.setProject("gate-api");
client.subscribe("collections.gates.documents", (payload) => {
console.log(payload);
});

Currently Realtime/websocket connection are only supported in browser environments 👍

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa shet

whats your use case? 🙂

I'm making a "Stargate Network" in a game called Resonite, I want to listen to changes for specific columns for when stargates are connecting to eachother so it plays the right animation in-game

It uses websockets to connect to the game itself

guess i'll just have to constantly check the state
Recommended threads
- Appwrite 1.7.4 " Utopia\Domains\Domain::...
- Functions stuck at "waiting"
Hello, I have a problem. I have self hosted appwrite. We recently updated to 1.7.4. After the update, the functions stopped working. They stay in "waiting" stat...
- Image Loading issue in Snapgram project
Hello community, I have a issue with the Image Loading I made a Project from youtube of Snapgram, it worked perfectly 8 months ago, but now the images aren't l...
