edit socket connection