interface IBaseBroker

export interface IBaseBroker<TEvents extends {}>

Type Parameters

TEvents extends {}

subscribe(
events: (keyof TEvents)[]
) : Promise<void>

Subscribes to the given events

unsubscribe(
events: (keyof TEvents)[]
) : Promise<void>

Unsubscribes from the given events