Chat server implementation using mongo db and node js