Class EventEmitter<T>

Lightweight event broadcaster.

While this class' primary use in the library is for sending log events to registered listeners, it is defined to be generic, and can technically emit any type of value.

Feel free to use this for non-logging things since javascript has no built-in observer pattern...

Type Parameters

  • T

Hierarchy

  • EventEmitter

Constructors

Accessors

Methods

Generated using TypeDoc