Let different parts of your Node.js application communicate without being tightly connected.
Node.js uses an event-driven programming model extensively. The EventEmitter class provides a simple way for one part of an application to emit an event while other parts listen for that event and react to it.
Events are used throughout Node.js itself, including streams, servers, and sockets. Understanding emitters, listeners, event arguments, and special events such as error helps you understand how many Node.js APIs communicate internally.
What you'll walk away knowing
No questions match "".