Published on December 4, 2016 by ProgrammingKnowledge

Much of the Node.js core API is built around an idiomatic asynchronous event-driven architecture in which certain kinds of objects (called “emitters”) periodically emit named events that cause Function objects (“listeners”) to be called.
When the EventEmitter object emits an event, all of the functions attached to that specific event are called synchronously. Any values returned by the called listeners are ignored and will be discarded.

Leave a Reply

Be the First to Comment!

Notify of
avatar

wpDiscuz