lib/channel.js
function Channel(connection, name, options) {
    options || (options = {});
    options.capped = true;
    // In mongo v <= 2.2 index for _id is not done by default
    options.autoIndexId = true;
    options.size || (options.size = 1024 * 1024 * 5);
    options.strict = false;

    this.options = options;
    this.connection = connection;
    this.closed = false;
    this.listening = null;
    this.name = name || 'mubsub';

    this.create().listen();
    this.setMaxListeners(0);
}
function Channel(connection, name, options) {
    options || (options = {});
    options.capped = true;
    // In mongo v <= 2.2 index for _id is not done by default
    options.autoIndexId = true;
    options.size || (options.size = 1024 * 1024 * 5);
    options.strict = false;

    this.options = options;
    this.connection = connection;
    this.closed = false;
    this.listening = null;
    this.name = name || 'mubsub';

    this.create().listen();
    this.setMaxListeners(0);
}
Channel constructor.

@param {Connection} connection
@param {String} [name] optional channel/collection name, default is 'mubsub'
@param {Object} [options] optional options
- `size` max size of the collection in bytes, default is 5mb
- `max` max amount of documents in the collection
- `retryInterval` time in ms to wait if no docs found, default is 200ms
- `recreate` recreate the tailable cursor on error, default is true
@api public