Skip to main content
Skip to main content

IEventBusModuleService

Methods

emit

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

TobjectRequired

Parameters

eventNamestringRequired
dataTRequired
optionsRecord<string, unknown>

Returns

Promise<void>

PromisePromise<void>Required

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

TobjectRequired

Parameters

dataEmitData<T>[]Required

Returns

Promise<void>

PromisePromise<void>Required

subscribe

**subscribe**(eventName, subscriber, context?): [IEventBusModuleService](/references/services/interfaces/IEventBusModuleService)

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusModuleService

IEventBusModuleServiceIEventBusModuleServiceRequired

unsubscribe

**unsubscribe**(eventName, subscriber, context?): [IEventBusModuleService](/references/services/interfaces/IEventBusModuleService)

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusModuleService

IEventBusModuleServiceIEventBusModuleServiceRequired
Was this section helpful?