public boolean isConnected(){
  return connection != null && !connection.isDisconnected();
}

public boolean isConnected ( ) { return connection != null && ! connection . isDisconnected ( ) ; }
checks whether this client is connected to the hono server .
