chat socket application using angularjs