ptejada / artillery-engine-socketio-v3

Socket.IO v3 engine for Artillery
Mozilla Public License 2.0
22 stars 15 forks source link

Query parameters ignored #6

Closed pjain11 closed 3 years ago

pjain11 commented 3 years ago

Here's how i'm using the config, i enabled debug logs and i don't see query parameters being passed in the request.

config: target: "MY_URL" phases:

ptejada commented 3 years ago

@pjain11

Currently, this addon-engine is not configured to accept any options. Please set Socket.IO specification as documented here https://artillery.io/docs/guides/guides/socketio-reference.html#Socket-IO-specific-configuration

This plugin will use the same configs. Ex:

config:
  target: "MY_URL"
  phases:
    - duration: 60
       arrivalRate: 5
   engines:
     socketio-v3: {}
  socketio:
     transports: ["websocket"]
     query:
        Authorization: "MY_TOKEN"

I will make a compatibility update so client options can be set under config.engines.sockerio-v3 as well.