update socket