Cleanup the websocket url for deployment