getting websocket url dynamically