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
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