Hello guys, How can I validate that the connection was successful?
You mean realtime?
No, I mean validate the connection with appwrite, if it really manages to connect or not
You only connect to appwrite when you send a request, for example, to get documents. So consequently, the best way to know if the connection is or not valid is by seeing if the request has a valid result or an error is being thrown
I understand, thank you, but I was referring to why my app depends 100% on appwrite, so if I don't have an initial connection to validate if I can communicate with the server, I think it would generate a bad user experience.
I mean, I would prefer to know if I have a connection from the beginning.
Well, most apps don't check if they have an initial connection
I don't think checking initial connection is needed
Perfect, thanks for responding
Do you have additional doubts or something else respect this?
Or can I mark this as solved?
Recommended threads
- Problem with getting rows from related t...
Hi, I migrated the Appwrite SDK to 1.8.0 and the package in my Flutter app to version ^20.3.2. I noticed one thing is different. Previously, when I got a JSON r...
- client.ping() does not appear to work.
After upgrading to 1.8.0, I ran the `starter_for_flutter` and tested the ping. It failed with a "Server Error". I tried this again on my production instance (1...
- bulkUpsert and Realtime
Hey when I use Realtime on a Table for creates/updates and use the createOperations method in my Appwrite Function for bulk upserts, will the realtime trigger f...