Hi,
I would like to use k6 to perform MQTT load testing, I tried to use mqttjs by using the k6-es6 starter but I’m not able to get a bundled test that is working.
import url from 'url'; // I had to add that to avoid ReferenceError: URL is not defined
import mqtt from 'mqtt';
export default function() {
console.log("connect");
const client = mqtt.connect('mqtt://localhost:1883');
}
The last error I got : “Invalid regular expression (re2):”
Is there any people that already got success with k§ and mqtt?
Cheers!