docs: function checkServerOptions(type, options, channels) {
      var endpoint, c, err;
  
      endpoint = type === 'adminServer' ? options.name + '/admin' : options.name;
  
      // Validate options object, and set default endpoint if undefined.
      if ('undefined' === typeof options[type]) {
          options[type] = { endpoint: endpoint };
      }
      else if ('string' === typeof options[type]) {
          options[type] = { endpoint: options[type] };
      }
      else if ('object' === typeof options[type]) {
          if ('undefined' === options[type].endpoint) {
              options[type].endpoint = endpoint;
          }
          else if ('string' !== typeof options[type].endpoint) {
              throw new TypeError('ServerNode.addChannel: options.' + type +
                                  '.endpoint must be string or undefined.' +
                                  'Found: ' + options[type].endpoint);
          }
      }
      else {
          throw new TypeError('ServerNode.addChannel: options.' + type +
                              'must be string, object, or undefined. Found: ' +
                              options[type]);
      }
  
      // See if admin and player server have the same endpoint.
      endpoint = options[type].endpoint;
      if (type === 'adminServer') {
          if (endpoint === options.playerServer ||
              ('object' === typeof options.playerServer &&
               endpoint === options.playerServer.endpoint)) {
  
              err = true;
          }
      }
      else {
          if (endpoint === options.adminServer ||
              ('object' === typeof options.adminServer &&
               endpoint === options.adminServer.endpoint)) {
  
              err = true;
          }
      }
  
      if (err) {
          throw new Error('ServerNode.addChannel: player and admin servers ' +
                          'cannot have same endpoint: ' + endpoint);
      }
  
      // See if an endpoint with the same name is already in use.
      for (c in channels) {
          if (channels.hasOwnProperty(c)) {
              if (channels[c].adminServer.endpoint === ('/' + endpoint) ||
                  channels[c].playerServer.endpoint === ('/' + endpoint)) {
  
                  throw new Error('ServerNode.addChannel: options.' + type +
                                  '.endpoint already existing: ' + endpoint);
              }
          }
      }
  }