lib/broadcast.js
function() {
      delete self._requestState[transactionId];
      self._localMap.add(nbname, group, address, ttl, self._type);
      self._sendRefresh(nbname, function(error) {
        if (typeof callback === 'function') {
          callback(error, !error);
        }
      });
    }
function() {
      delete self._requestState[transactionId];
      self._localMap.add(nbname, group, address, ttl, self._type);
      self._sendRefresh(nbname, function(error) {
        if (typeof callback === 'function') {
          callback(error, !error);
        }
      });
    }
function ( ) { delete self . _requestState [ transactionId ] ; self . _localMap . add ( nbname , group , address , ttl , self . _type ) ; self . _sendRefresh ( nbname , function ( error ) { if ( typeof callback === 'function' ) { callback ( error , ! error ) ; } } ) ; }
If we send the required number of registration requests and do not get a conflict response from any other nodes then we can safely declare this name ours.
If we send the required number of registration requests and do not get a conflict response from any other nodes then we can safely declare this name ours .