code: def client_ready(self):
          
          if not self.auth_complete():
              return False
          if not self._client_ready():
              self._connection.work()
              return False
          return True
docs: Whether the handler has completed all start up processes such as
          establishing the connection, session, link and authentication, and
          is not ready to process messages.
  
          :rtype: bool