use websocket host relative to url