Skip to main content
Skip to main content

AbstractEventBusModuleService

Implements

Properties

eventToSubscribersMap_Map<string | symbol, SubscriberDescriptor[]>Required

Accessors

eventToSubscribersMap

Returns

MapMap<string | symbol, SubscriberDescriptor[]>Required

Methods

emit

Abstract **emit**<TypeParameter T>(eventName, data, options): Promise&#60;void&#62;

Parameters

eventNamestringRequired
dataTRequired
optionsRecord<string, unknown>Required

Returns

PromisePromise<void>Required

Abstract **emit**<TypeParameter T>(data): Promise&#60;void&#62;

Parameters

dataEmitData<T>[]Required

Returns

PromisePromise<void>Required

storeSubscribers

Parameters

__namedParametersobjectRequired
__namedParameters.eventstring | symbolRequired
__namedParameters.subscriberSubscriber<unknown>Required
__namedParameters.subscriberIdstringRequired

Returns

voidvoid

subscribe

Parameters

eventNamestring | symbolRequired
subscriberSubscriber<unknown>Required

Returns

AbstractEventBusModuleServiceAbstractEventBusModuleServiceRequired

unsubscribe

Parameters

eventNamestring | symbolRequired
subscriberSubscriber<unknown>Required
contextSubscriberContextRequired

Returns

AbstractEventBusModuleServiceAbstractEventBusModuleServiceRequired
Was this section helpful?