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