artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
8.03k stars 510 forks source link

Socket io - Not able to connect to server if it is using socketio v3 #902

Open ddt2yqh opened 3 years ago

ddt2yqh commented 3 years ago

From document of socketio: " v2 client will not be able to connect to a v3 server (and vice versa)."

My Server is using socket io v3, so the artillery is not able to connect to my server.

How can i make it work? Thank you.

grapeia commented 3 years ago

Use this one: https://www.npmjs.com/package/artillery-engine-socketio-v3 Works for me.

ddt2yqh commented 3 years ago

awesome! Big help, thank you!@grapeia

halilkalkan commented 3 years ago

@grapeia Thank you so much, I've spend lots of hours to figure out what's wrong until see your comment. But I also disappointed there were no sign about socket.io versions in the documentation.

hassy commented 3 years ago

According to the updated official migration guide it would seem a v2 client (e.g. Artillery) should be able to connect to >=v3.1.0 Socket.io server.

Either way we'll be updating the engine to work with v3 (hopefully by merging @ptejada's work from the v3 engine linked above).

Related discussion: https://github.com/artilleryio/artillery/discussions/935

hassy commented 3 years ago

Also, docs updated now: https://artillery.io/docs/guides/guides/socketio-reference.html#Important-Socket-io-server-versions Thanks folks!