updating socket URL on client side