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
- How to edit email template?
I already know that we can edit body of email templates in the console, but that still produces somewhat weird HTML output. Sometimes it looks broken in some em...
- How to implement password reset/recovery...
Good day everyone. I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I ...
- migrating project data on cloud
Hi, I have an ALM project structure on Appwrite cloud and I would like to refresh my Dev database with UAT data. I am trying to use the Migrate feature on the p...