socket sample added for creation of post