interface IBaseBroker

export interface IBaseBroker<TEvents extends Record<string, any>>

Type Parameters

TEvents extends Record<string, any>

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

Subscribes to the given events

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

Unsubscribes from the given events