code: def reconnect(self, maxdelay=30, retry=0):
          
          delay_seconds = 2**self._reconnect_backoff_c - 1
  
          if delay_seconds < maxdelay:
              self._reconnect_backoff_c = min(7, self._reconnect_backoff_c + 1)
  
          return self.connect(delay=delay_seconds, retry=retry)
docs: Implements explonential backoff delay before attempting to connect.
          It is otherwise identical to calling :meth:`.CMClient.connect`.
          The delay is reset upon a successful login.
  
          :param maxdelay: maximum delay in seconds before connect (0-120s)
          :type maxdelay: :class:`int`
          :param retry: see :meth:`.CMClient.connect`
          :type retry: :class:`int`
          :return: successful connection
          :rtype: :class:`bool`