set socket in client