add socket example.