fetch websocket host from window.location