• Since you fixed the bug, the hasOwnProperty does not work correctly.

    agents =

    "0":{
        "RPCfunctions":{},
        "init":function () {
      console.log(this.agentName + " added");
    },
        "add":..............................
    }
    

    message =

    {
      "address":"0",
      "origin":"0",
      "UID":"4n22krpnok2",
      "content":{
        "method":"add",
        "params":{"a":71,"b":12},
        "id":"2180qsewake8"
      }
    }
    

    agent.hasOwnProperty(message.address) == false

About

Avatar for Alex @Alex started