update socket endpoint