socket demo