I’m currently experimenting with K6 to load test a web app that relies on both requests and WebSockets to simulate a user experience.
This is probably due to my lack of understanding in the technology but if the web app opens a WebSocket from a post request will K6 handle this in the way a user would navigating the site?
- User makes a post request
- Websocket connection is opened and remains open whilst users make further post requests
- Websocket is closed at the end of the “exercise”
If I just do a post request with K6 will a websocket be opened in the background and handled by the VU or do I have to manually open one using the WS functionality of K6?
Issue being I’ve seen other posts regarding not being able to do requests whilst working with Websockets so just looking for some clarification on the above!