code: function onAction (name) {
        debug('on action %s', name);
        if (socket.listeners(name).indexOf(self.onMessage) < 0) {
          socket.on(name, function () {
            debug('socket on %s', name);
            var args = Array.prototype.slice.call(arguments);
            self.onMessage(socket, [name].concat(args));
          });
        }
      }
docs: This is used to add listeners to sockets when the Messages.prototype.action()
  method is invoked
  
  @param {string} name