lib/pubsub.js
function getChannels(pattern) {
  if(!pattern) return Object.keys(this._channels);
  var re = (pattern instanceof RegExp) ? pattern : Pattern.compile(pattern)
    , k
    , list = [];
  for(k in this._channels) {
    if(re.test(k)) {
      list.push(k);
    }
  }
  return list;
}
function getChannels(pattern) {
  if(!pattern) return Object.keys(this._channels);
  var re = (pattern instanceof RegExp) ? pattern : Pattern.compile(pattern)
    , k
    , list = [];
  for(k in this._channels) {
    if(re.test(k)) {
      list.push(k);
    }
  }
  return list;
}
function getChannels ( pattern ) { if ( ! pattern ) return Object . keys ( this . _channels ) ; var re = ( pattern instanceof RegExp ) ? pattern : Pattern . compile ( pattern ) , k , list = [ ] ; for ( k in this . _channels ) { if ( re . test ( k ) ) { list . push ( k ) ; } } return list ; }
Get channels matching pattern not including pattern subscribers.

Suitable for the PUBSUB CHANNELS [pattern] command.
Get channels matching pattern not including pattern subscribers .