artillery icon indicating copy to clipboard operation
artillery copied to clipboard

Log Socket Response always displays undefined

Open kusaljr opened this issue 2 years ago • 1 comments

config:
  target: "http://localhost:3000"
  phases:
      - duration: 5 
        arrivalRate: 1
  socketio:
      transports: ["websocket"]

scenarios:
  - name: "Emit an event"
    engine: socketio
    flow:
      - emit:
          channel: "chat-message"
          data: { "msg": "fooBar2" }
          response:
            channel: "chat-message"
            capture: 
              json: "$"
              as: "res"
      - log: "{{res}}"

What am i doing wrong here?

kusaljr avatar Jul 21 '22 08:07 kusaljr