Skip to main content
Skip to main content

IEventBusModuleService

Implemented by

Methods

emit

emit<T>(eventName, data, options?): Promise<void>

Parameters

eventNamestringRequired
dataTRequired
optionsRecord<string, unknown>

Returns

PromisePromise<void>Required

emit<T>(data): Promise<void>

Parameters

dataEmitData<T>[]Required

Returns

PromisePromise<void>Required

subscribe

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusModuleServiceIEventBusModuleServiceRequired

unsubscribe

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusModuleServiceIEventBusModuleServiceRequired
Was this section helpful?