code: function executeReconnect(self) {
      return function() {
        if (self.state === DESTROYED || self.state === UNREFERENCED) {
          return;
        }
  
        connectNewServers(self, self.s.replicaSetState.unknownServers, function() {
          var monitoringFrequencey = self.s.replicaSetState.hasPrimary()
            ? _haInterval
            : self.s.minHeartbeatFrequencyMS;
  
          // Create a timeout
          self.intervalIds.push(new Timeout(executeReconnect(self), monitoringFrequencey).start());
        });
      };
    }
docs: Run the reconnect process