code: function ConnectionManager(namespace) {
    this.namespace = namespace;
    this.clients = new ArrayKeys({
      identifier: 'id'
    });
  
    var reconnecting = false;
    var self = this;
  
    if (! reportingActive) {
      reportingActive = true;
  
      setInterval(function __report() {
        self.clients.forEachRecord(function (client) {
          var count = client.references.getCount();
  
          if ((count > 0) && ((typeof client.isConnected !== 'function') || (! client.isConnected())) && (! reconnecting)) {
            debug('client ' + client.id + ' is disconnected, but reference count: ' + count + ', reconnecting...');
  
            var scopes   = client.references.getIdentifiers();
            var scope    = client.references.getRecord(scopes[0]);
            reconnecting = true;
  
            client.connect.call(buildScope(scope, client), function (err, c) {
              if (err) {
                debug('failed reconnecting: ', err);
                throw new Error(err);
              }
              debug('client successfully reconnected.');
              client.connection = c;
              client = registerListeners(scope, client);
              reconnecting = false;
            });
  
            for (var i = 1, len = scopes.length; i < len; i++) {
              client = registerListeners(client.references.getRecord(scopes[i]), client);
            }
          }
        });
      }, 60000);
    }
  }
docs: Class: ConnectionManager
  
  The singleton object responsible for keeping a connection session alive for
  retreival for anything claiming the same namespace. Tracking references, etc.