code: function sessionCreated(err, session) {
    var agentInfo = {name: ping + "er", title: "a " + ping + "er" }
  
    session.createAgent(agentInfo, function(err, agent) {
      console.log(ping + " agent created")
  
      agent.receive(ping, function(body, reply) {
        reply(null, body)
        bong()
      })
    })
  
    session.on("ragentCreated", function(ragent) {
      ragentCreated(ragent, "created")
    })
  
    session.getRemoteAgents(function(err, ragents){
      ragents.forEach(function(ragent) {
        ragentCreated(ragent, "existed")
      })
    })
  }
docs: ------------------------------------------------------------------------------