Skip to main content
Skip to main content

IEventBusService

Methods

emit

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

TobjectRequired

Parameters

eventstringRequired
dataTRequired
optionsunknown

Returns

Promise<unknown>

PromisePromise<unknown>Required

subscribe

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

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusService

IEventBusServiceIEventBusServiceRequired

unsubscribe

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

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusService

IEventBusServiceIEventBusServiceRequired

withTransaction

**withTransaction**(transactionManager?): [IEventBusService](/references/services/interfaces/IEventBusService)

Parameters

transactionManagerEntityManager

Returns

IEventBusService

IEventBusServiceIEventBusServiceRequired
Was this section helpful?