Add socket connection to the server.