Batch execute websocket connect request and http request

can you please tellme how i can execute my websocket that need to close once all http connection completed. so i wanted to run those two request in parrlell.
Can you please help me…

Hi @hackypatil, Welcome to the community forum :tada:

Can you please explain what you are trying to do in more detail … maybe with some pseudo code and comments.

If you want to have one VU open a websocket and send HTTP requests at the same time - this is currently not possible. Both of the current APIs in k6 are blocking which means that only one of them can be called at a time.

While there is now a websocket extension that will use the fairly new event loop in k6, that isn’t true for an HTTP API. So your mileage may vary if you try to use it. On the other hand if you do - please report any question and problems in the repo.