AngularJs Chat Application using websocket with help of socket.io (nodejs)