Send Email when an Error Occurs in Sails.js

We can use the log4js library for logging errors. Log4js is a light-weight and flexible plugin. To install this plugin in our application, we will run the following command in the terminal: npm install log4js 1 npm install log4js After installation of this plugin, we...

Building a TCP Client in NodeJs

Building  TCP Client Hello All, TCP is one of the most used transport protocols on the Internet, on top of which sit application protocols like HTTP. TCP is a connection-oriented protocol, which means that one endpoint requests and establishes a dedicated connection...