AbstractCalls every listener registered for an event name.
The event to send.
The value listeners receive.
Removes one listener for an event name.
The event the listener was registered for.
The same function passed to on.
Registers a listener for one event name.
The event to listen for.
Called with that event's payload.
Stores listeners and calls them when an event is sent.
💡 Subclass this when a type needs
on,off, andemit.Example
See
DbmsEventEmitterInterface