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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.