node js and mongo db socket server and client chatting