lib/nssocket.js
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();
  }
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();
  }
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 ( ) ; }
Helper function which attempts to retry if it is less than the maximum
Helper function which attempts to retry if it is less than the maximum