webapp: using window.location.host as host in websocket endpoint uri