lib/command/pubsub/publish.js
function execute(req, res) {
  // must coerce channel to string
  var len = this.state.pubsub.publish(
    req.conn, '' + req.args[0], req.args[1]);
  res.send(null, len);
}
function execute(req, res) {
  // must coerce channel to string
  var len = this.state.pubsub.publish(
    req.conn, '' + req.args[0], req.args[1]);
  res.send(null, len);
}
function execute ( req , res ) { // must coerce channel to string var len = this . state . pubsub . publish ( req . conn , '' + req . args [ 0 ] , req . args [ 1 ] ) ; res . send ( null , len ) ; }
Respond to the PUBLISH command.
Respond to the PUBLISH command .