Updating socket connection