Saves sockets on connection.