add socket samples