How to use Single Websocket Connection for all the virtual users and also refresh it periodically based on a token

For refresh token you can check: