I reacently switched form a selfhosted appwrite server, to appwrite cloud but even with the same code I am encountering an issue with my realtime connections. Sometimes they do not get connected. I am getting this issue:
E/flutter ( 4819): #0 _WebSocketImpl.connect (dart:_http/websocket_impl.dart:1011:41) E/flutter ( 4819): #2 RealtimeIO._getWebSocket (package:appwrite/src/realtime_io.dart:37:27) E/flutter ( 4819): <asynchronous suspension> E/flutter ( 4819): #3 RealtimeMixin._createSocket (package:appwrite/src/realtime_mixin.dart:33:17) E/flutter ( 4819): <asynchronous suspension>
The only thing I changed is from appwrite selfhosted to cloud.
This is how I initialize my appwrite client, same as how I have been doing it with my selfhosted server.
""" // Initialize the appwrite client init() { client .setEndpoint(AppConstants.appwriteApiEndpoint) .setProject(AppConstants.appwriteProjectId); account = Account(client); teams = Teams(client); databases = Databases(client); functions = Functions(client); storage = Storage(client); realtime = Realtime(client); } """
Recommended threads
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...