agent-event-service / Exports / DefaultEventService
Class: DefaultEventService
Default no-op event service (production-safe). When injected, emit() intentionally does nothing.
Hierarchy
↳
DefaultEventService
Table of contents
Constructors
Methods
Constructors
constructor
• new DefaultEventService(): DefaultEventService
Returns
Inherited from
AbstractEventService.constructor
Methods
subscribe
▸ subscribe(listener): void
Parameters
| Name | Type |
|---|---|
listener | TEventListener |
Returns
void
Inherited from
AbstractEventService.subscribe
Defined in
unsubscribe
▸ unsubscribe(listener): void
Parameters
| Name | Type |
|---|---|
listener | TEventListener |
Returns
void
Inherited from
AbstractEventService.unsubscribe
Defined in
emit
▸ emit(_eventType, _data, _context?): void
Parameters
| Name | Type |
|---|---|
_eventType | string |
_data | IBaseEventData |
_context? | IEventContext |
Returns
void