examples/basic.js
function (message, socket, smartrouter) {
        smartrouter.publish(message.ids.addressee, 'message', message, socket); // we publish it to the message.ids.addressee queue (ie. to actor2)
      }
function (message, socket, smartrouter) {
        smartrouter.publish(message.ids.addressee, 'message', message, socket); // we publish it to the message.ids.addressee queue (ie. to actor2)
      }
function ( message , socket , smartrouter ) { smartrouter . publish ( message . ids . addressee , 'message' , message , socket ) ; // we publish it to the message.ids.addressee queue (ie. to actor2) }
when we receive a 'message' message on the 'actor1' endpoint (ie. from the actor1),
when we receive a message message on the actor1 endpoint ( ie . from the actor1 )