We will write a Node.js application using TCP Sockets. Step 1 - Creating a Node.js TCP Application Node.js installed using the official PPA, as explained in How To Install Node.js on Ubuntu 16.04.Nginx must be compiled with the -with-stream option, which is the default on a fresh installation of Nginx through the apt package manager on Ubuntu 16.04. Nginx installed on your server, as shown in How To Install Nginx on Ubuntu 16.04.One Ubuntu 16.04 server set up by following the Ubuntu 16.04 initial server setup guide, including a sudo non-root user and a firewall.To complete this tutorial, you will need: Then you’ll configure Nginx as a reverse proxy for the TCP application and test the client-server connection from your local machine. You’ll run your server as a background process using a powerful Node.js process manager called PM2. In this tutorial, you’ll build a basic Node.js TCP server, along with a client to test the server. A TCP server can accept a TCP connection request, and once the connection is established both sides can exchange data streams. TCP (Transmission Control Protocol) is a networking protocol that provides reliable, ordered and error-checked delivery of a stream of data between applications. Node.js is used for building server-side and networking applications. Node.js is a popular open-source JavaScript runtime environment built on Chrome’s V8 Javascript engine. The author selected OSMI to receive a donation as part of the Write for DOnations program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |