i
Creating a Web Server
Handling Get Requests
Handling Post Requests
Event Handling
Event Loop
Routing
Streams
Debugging a Node application
Framework in Node.js
Express.js
Templating Engine
Invoking a REST Service
Pre-requisites for Node.js
Introduction to Node.js
What to use Node.js for?
Node.js - Environment Setup
REPL Terminal
The net module provides us asynchronous network API for creating stream-based TCP servers and clients.
Lets have a look at an example
Server.js
Client.js
Output :
In Server.js terminal
Open another terminal and run client.js alongside:
As server sees a client connected, going back to terminal 1, we find “Client connected logged”:
Don't miss out!