Rank 1: Thread
Hello, I am trying to subscribe to a channel using Realtime in my flutter app. I have the following code:
var sub = realtime.subscribe( ["databases.main.collections.teachers.documents"]);And then have a function which simply calls sub.stream.listen to listen. When I launch the app, I only get the WebSocketChannelException and in the devtools console of my browser I get can’t establish a connection to the server... and that the websocket returned an error 400. I tried to look into the appwrite-realtime container logs and it simply listed Connection close: N over and over. I am pretty sure the realtime endpoint is correct and the collection has its collections permission currently set to allow anyone to read. But I still cannot figure out where is the problem.