const CouchbaseChannel = require('./couchbaseChannel');

class CouchbaseChannelDisney extends CouchbaseChannel {
  constructor(options = {}) {
    options.url = options.url || 'https://realtime-sync-gw.wdprapps.disney.com/park-platform-pub';
    options.auth = options.auth || {
      user: 'WDPRO-MOBILE.MDX.WDW.ANDROID-PROD',
      password: 'ieNgak4ahph5th',
    };

    // call super with our db URL
    super(options);
  }
}

module.exports = CouchbaseChannelDisney;

const CouchbaseChannel = require('./couchbaseChannel');

/**
 * Example use:
 *  // setup channel
 *  const Channel = new CouchbaseChannelDisney({
 *     dbName: `myDBName`,
 *     channel: `dlp.facilitystatus.1_0`,
 *  });
 *  // subscribe to channel events
 *  Channel.on('updated', (newDoc) => {});
 *  Channel.on('error', (error) => {});
 *  // start channel sync
 *  Channel.Start().then(() => {
 *    // ready
 *  });
 */

class CouchbaseChannelDisney extends CouchbaseChannel {
  constructor(options = {}) {
    options.url = options.url || 'https://realtime-sync-gw.wdprapps.disney.com/park-platform-pub';
    options.auth = options.auth || {
      user: 'WDPRO-MOBILE.MDX.WDW.ANDROID-PROD',
      password: 'ieNgak4ahph5th',
    };

    // call super with our db URL
    super(options);
  }
}

module.exports = CouchbaseChannelDisney;

Add example use to Disney Couchbase Channel doc
[+] Add example use to Disney Couchbase Channel doc
