lib/pubsub.js
function getChannelList(channels) {
  var i
    , channel
    , list = [];
  for(i = 0;i < channels.length;i++) {
    channel = channels[i];
    list.push(channel,
      this._channels[channel] ? this._channels[channel].length : 0);
  }
  return list;
}
function getChannelList(channels) {
  var i
    , channel
    , list = [];
  for(i = 0;i < channels.length;i++) {
    channel = channels[i];
    list.push(channel,
      this._channels[channel] ? this._channels[channel].length : 0);
  }
  return list;
}
function getChannelList ( channels ) { var i , channel , list = [ ] ; for ( i = 0 ; i < channels . length ; i ++ ) { channel = channels [ i ] ; list . push ( channel , this . _channels [ channel ] ? this . _channels [ channel ] . length : 0 ) ; } return list ; }
Get a multi bulk array reply of channels with subscriber counts.

Suitable for the PUBSUB NUMSUB [channel-1 channel-N] command.

@param channels The array of channels.
Get a multi bulk array reply of channels with subscriber counts .