Simple Chat application with NodeJs and Socket.io

To building a chat application we need to implement long/short pooling with JavaScript or jQuery. We can’t say it real-time chat because the user has to wait until the poll response comes. Thanks to socket.io, which provides a bi-directional communication channel between a client and a server.