IPubSubBroker

export interface IPubSubBroker<TEvents extends {}> extends IBaseBroker<TEvents>, AsyncEventEmitter<ToEventMap<TEvents>>
export interface IPubSubBroker<TEvents extends {}> extends IBaseBroker<TEvents>, AsyncEventEmitter<ToEventMap<TEvents>>

No summary provided.

Extends

IBaseBroker<TEvents>

Extends

AsyncEventEmitter<ToEventMap<TEvents>>
NameConstraintsOptionalDefaultDescription
TEvents{}NoNone
publish(event, data):Promise<void>
Publishes an event
NameConstraintsOptionalDefaultDescription
Eventkeyof TEventsNoNone
NameTypeOptionalDescription
eventEventNoNone
dataTEvents[Event]NoNone
subscribe(events):Promise<void>
Subscribes to the given events
NameTypeOptionalDescription
events(keyof TEvents)[]NoNone
Inherited from IBaseBroker
unsubscribe(events):Promise<void>
Unsubscribes from the given events
NameTypeOptionalDescription
events(keyof TEvents)[]NoNone
Inherited from IBaseBroker