code: function tryReconnect() {
      self.retry.retries++;
      if (self.retry.retries >= self.retry.max) {
        return self.emit('error', new Error('Did not reconnect after maximum retries: ' + self.retry.max));
      }
  
      doReconnect();
    }
docs: Helper function which attempts to retry if it is less than the maximum