Simple Socket emit program for web and mobile