code: function stopAll(socket) {
    if (_.isEmpty(this.consumers)) {
      return;
    }
  
    _.forOwn(this.consumers[socket.id].routingKeys, function (consumer, routingKey) {
      if (routingKey == '#') {
        // this must be done to prevent infinite stop loop
        routingKey = '##';
      }
  
      this.stopConsume(socket, {routingKey: routingKey});
    }.bind(this));
  }
docs: Stop all consumers linked to a socket
  
  @param socket