Update the socket example.