CAChristopher Adamsoninsoftwaredevpro.hashnode.dev·Dec 22, 2022 · 3 min readNet in Node.JSThe net module provides an asynchronous networking API for creating stream-based TCP (transmission control protocol) or IPC (inter-process communication) servers. One of the most common transport layer protocols is TCP. TCP is connection-oriented. Ru...00
CAChristopher Adamsoninsoftwaredevpro.hashnode.dev·Dec 21, 2022 · 2 min readOS in Node.JSThe os module is a handy module that allows us to get details about the OS. It has a lot of operating system-related utility methods and properties. Run the code below to see details about the operating system. const os = require('os'); console.log(...00
CAChristopher Adamsoninsoftwaredevpro.hashnode.dev·Dec 21, 2022 · 2 min readHTTP in Node.JSThe Web Websites don’t use a command-line terminal to serve web pages. A basic server can be made in just a few lines of code: server.js 1. const http = require('http'); 2. 3. const host = '127.0.0.1'; 4. const port = 34321; 5. 6. const ser...00