isRunning method
Returns whether the Maestro automation server is running on target device.
Implementation
Future<bool> isRunning() async {
final uri = Uri.parse('$_baseUri/isRunning');
try {
final result = await _client.get(uri);
print('status code: ${result.statusCode}, response body: ${result.body}');
return result.successful;
} catch (err) {
print('failed to call $uri: $err');
return false;
}
}