Rank 1: Thread
Using health endpoint in flutter.
I am currently contributing to an open source project and i need to check the status of the appwrite instance wether it is active or not but i am unable to access the health endpoint.
try { final health = await getRealtime().health(); print('Appwrite is active: ${health.status}'); return health; } on AppwriteException catch (e) { print('Error checking Appwrite health: $e'); throw e; } }```
> and i get this error :-> The method 'health' isn't defined for the type 'Realtime'. if I am doing wrong then can you tell me how really to proceed.