Added a example for socket