adds socket connection