docs: function RAgent_onEvent(message) {
    DEBUG("RAgent.onEvent(" + message.name + ")")
    var name = message.name
    var body = message.body
    var agent
  
    if (message.from == "server") {
      if ((name == "agentCreated") || (name == "agentDestroyed")) {
        agent = this._session._ragents.get(body.id)
        if (null == agent) {
          agent = new RAgent(this._session, body)
          this._session._ragents.set(body.id, agent)
        }
  
        this.emit(name, agent.info)
      }
      else {
        this.emit(name, body)
      }
    }
    else {
      this.emit(name, body)
    }
  }