update socket connect