#3520·artillery

unique authorization for each VU with Socket.io engine.

Author: pankiljoshiCreated Apr 16, 2025Updated Mar 12, 2026

I'm trying to test my socket.io setup and I want each VU to have it's own authorization (auth token).

beforeSenario is called after the socket.io engine is created so I can't use it for generating tokens, is there a solution or workaround for this issue.

I'm currently resorted to only use 1 user for the whole test flow which is not ideal.