Use websocket URL based on actual host