config:
target: "http://192.168.2.161:5000"
phases:
- duration: 600
arrivalRate: 5
scenarios:
- name: "oz_event"
flow:
- loop:
- emit:
channel: "oz_event"
data: "hello world!"
namespace: "oz"
- think: 1
count: 50
这是我的艺术代码。当我运行此代码时
我已经使用以下代码解决了此问题
config:
target: "http://192.168.2.161:5000"
phases:
- duration: 600
arrivalRate: 5
scenarios:
- engine: "socketio"
flow:
- emit:
channel: "oz_event"
data: 'hello'
namespace: "oz"
response:
channel: "oz_response"
data: "hello"