Skip to content

AXRobot and AXRobotManage

1. Difference between AXRobot and AXRobotManage

  • 1: Different channel interfaces AXRobot is mainly the interface of the single-robot channel, and AXRobotManage is mainly the interface of the business channel; But AXRobotManage inherits AXRobot, so AXRobotManage can also call the interfaces of AXRobot.
  • 2: Different initialization constructors AXRobot: five parameters

    TypeScript
    const axRobot = new AXRobot("<appId>", "<appSecret>", Mode, "<serverUrl>", "<websocketUrl>");
    
    AXRobotManage: one parameter object
    TypeScript
    1
    2
    3
    4
    5
    6
    7
    8
    const axRobot = AXRobotManage({
      appId: "",
      secret: "",
      mode: "",
      serverUrl: '',
      wsUrl: '',
      viewLanguage: ''
    })
    

  • 3: AXRobotManage requires version 1.0.123 and above