change clientside socket connect to use window.location.href so local tunnel works