open websocket to the host that the page was served from