updating user connection to send data to server and read response