Skip to content

agent-event-service / Exports / DefaultEventService

Class: DefaultEventService

Default no-op event service (production-safe). When injected, emit() intentionally does nothing.

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new DefaultEventService(): DefaultEventService

Returns

DefaultEventService

Inherited from

AbstractEventService.constructor

Methods

subscribe

subscribe(listener): void

Parameters

NameType
listenerTEventListener

Returns

void

Inherited from

AbstractEventService.subscribe

Defined in

event-service.ts:30


unsubscribe

unsubscribe(listener): void

Parameters

NameType
listenerTEventListener

Returns

void

Inherited from

AbstractEventService.unsubscribe

Defined in

event-service.ts:34


emit

emit(_eventType, _data, _context?): void

Parameters

NameType
_eventTypestring
_dataIBaseEventData
_context?IEventContext

Returns

void

Overrides

AbstractEventService.emit

Defined in

event-service.ts:54

Released under the MIT License.