Chapter 3Networking with Sockets
Node.js is built from the ground up to do networked programming. In this chapter, weâll explore Nodeâs built-in support for low-level socket connections. TCP sockets form the backbone of modern networked applications, and understanding them will serve you well as we do more complex networking through the rest of the book.
As you develop socket-based servers and clients, youâll learn about the following Node.js aspects.
- Architecture and Core
-
The asynchronous programming techniques we explored in the last chapter will be even more important here. Youâll learn how to extend Node.js classes like EventEmitter. Youâll create custom modules to house reusable code.
- Patterns
-
A network connection has two endpoints. ...
Get Node.js the Right Way now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.