code: function add(client) {
    // Auto-remove clients on close
    client.once('closed', function() {
      remove(client);
    });
  
    clients = clients || [];
    clients.push(client);
    initClient(client);
  }
docs: Add a client to the list, and manage its life-cycle.