add socket sample