AbstractEventBusModuleService
Implements
Constructors
constructor
**new AbstractEventBusModuleService**()
Properties
Accessors
eventToSubscribersMap
get**eventToSubscribersMap**(): Map<string \| symbol, [SubscriberDescriptor](/references/services/types/SubscriberDescriptor)[]>
Returns
Map<string | symbol, SubscriberDescriptor[]>
Methods
emit
Abstract **emit**<TypeParameter T>(eventName, data, options): Promise<void>
T
objectRequiredParameters
eventName
stringRequireddata
TRequiredoptions
Record<string, unknown>RequiredReturns
Promise<void>
Promise
Promise<void>RequiredAbstract **emit**<TypeParameter T>(data): Promise<void>
T
objectRequiredParameters
Returns
Promise<void>
Promise
Promise<void>RequiredstoreSubscribers
Protected **storeSubscribers**(«destructured»): void
Parameters
__namedParameters
objectRequired__namedParameters.event
string | symbolRequired__namedParameters.subscriberId
stringRequiredReturns
void
void
voidsubscribe
**subscribe**(eventName, subscriber, context?): [AbstractEventBusModuleService](/references/services/classes/AbstractEventBusModuleService)
Parameters
Returns
unsubscribe
**unsubscribe**(eventName, subscriber, context): [AbstractEventBusModuleService](/references/services/classes/AbstractEventBusModuleService)
Parameters
eventName
string | symbolRequiredReturns
Was this section helpful?