set client's socket.io's server addr to location.href