dynamically pull websocket location from browser location. To support using different ports on the backend