Chapter 3Networking with Sockets
Node.js was designed from the ground up to do networked programming. In this chapter, weâll explore Node.jsâ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.
- Node.js 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 such as EventEmitter. Youâll create custom modules to house reusable code.
- Patterns
-
A network connection has two endpoints. ...
Get Node.js 8 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.