artillery.io xhr民意调查错误

时间:2017-06-19 17:53:20

标签: socket.io load-testing

我无法使用artillery.io连接设置engine = socketio,请在下面找到我的配置json

socket error {"type":"Transport error", "description":400}

"scenarios": [ { "name": "my test", "engine": "socketio", "flow": [ { "emit": { "channel": "command", "namespace": "command" } }, { "think": 1 } ] } ]

1 个答案:

答案 0 :(得分:0)

"scenarios": [
    {
      "name": "my test",
      "engine": "socketio",
      "flow": [
        {
          "emit": {
            "channel": "command"
            "data": "hello"
            "namespace": "/command"
          }
        },
        {
          "think": 1
        }
      ]
    }
  ]

请尝试使用上面的命令