interface IRPCBroker
extends
IBaseBroker<TEvents>AsyncEventEmitter<ToEventMap<TEvents, TResponses>>export interface IRPCBroker<TEvents extends Record<string, any>, TResponses extends Record<keyof TEvents, any>> extends IBaseBroker<TEvents>, AsyncEventEmitter<ToEventMap<TEvents, TResponses>>
callEvent extends keyof TEvents
>() : Promise<TResponses[Event]> <
Event extends keyof TEvents
Makes an RPC call
Subscribes to the given events, grouping them by the given group name
Inherited from: IBaseBroker
Unsubscribes from the given events - it's required to pass the same group name as when subscribing for proper cleanup
Inherited from: IBaseBroker