fixing bad generation of websocket url to use