CHAPTER 2

image

Networking with Node.js

Node.js is designed to function well in a networked environment. Its nonblocking, event-driven architecture allows for the use of highly scalable, networked applications. In this chapter you will discover many of the implementation details surrounding Node.js and its networking capabilities. In particular the recipes you will see will cover these topics:

  • Setting up a server
  • Creating connections to your server
  • Configuring server defaults
  • Creating a client
  • Using sockets to communicate between servers
  • Retrieving details about connected servers
  • Controlling socket details

Once you have read this chapter, you should ...

Get Node.js Recipes: A Problem-Solution Approach 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.