The EventEmitter is a class that facilitates communication/interaction between objects in Node.js. The EventEmitter class can be used to create and handle custom events. These objects are modules, functions, strings and object itself as explained below. Node.js runs in a single process and the application code runs in a single thread and thereby needs less […]