Lesson 8.5

Wire the demo and prove failure containment

Add four failure fixtures and one app-level error handler, then verify generic responses, keep-alive reuse, socket destruction, and continued service.

25 minexamples/demo.js
  • Add /boom, /reject, /died-mid-stream, and /custom-error without changing earlier demo routes.
  • Register one app-level error handler that responds only for /custom-error.
  • Verify stages 01 through 12 over real sockets.
Locked

This chapter is part of the framework capstone. Chapters 1 and 2 are free to build - unlock the rest to keep going.

Unlock the depth