fix websocket url construction