Understanding TCP Server and Socket Objects

To begin using the net module in Node.js applications, you first need to understand the TCP Server and Socket objects. These objects provide the framework for starting a TCP server to handle requests and implementing TCP socket clients to make requests to the socket servers. Once you understand the events, properties, methods, and behavior of these objects, it will be simple to implement your own TCP socket servers and clients.

The following sections cover the purposes and behaviors of the net.Socket and net.Server objects. You’ll learn about their most important events, properties, and methods.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.187.201