Callback for checking connection health.
Returns true if connection is healthy
typedef PingCallback = Future<bool> Function();