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.

Read More

Secure POST request with CSRF in NodeJs

Security is a major concern when you creating an app or website. Frameworks have built-in security features that sometimes you just need to activate. Anyway, We are not talking about the framework in this post. But when you build something from scratch then you must keep this in your mind.

Read More