EventEmitter

The Node.js class for objects that emit named events and call registered listener functions, similar to the browser's EventTarget.

In more detail

It uses emit and on instead of dispatchEvent and addEventListener. In the browser, EventTarget fills the same role natively.

Related terms

Taught in

References