IRPCBroker

export interface IRPCBroker<TEvents extends Record<string, any[]>, TResponses extends Record<keyof TEvents, any>> 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>>

No summary provided.

Extends

IBaseBroker<TEvents>

Extends

AsyncEventEmitter<ToEventMap<TEvents, TResponses>>
NameConstraintsOptionalDefaultDescription
TEventsRecord<string, any[]>NoNone
TResponsesRecord<keyof TEvents, any>NoNone
call(event, data, timeoutDuration?):Promise<TResponses[Event]>
Makes an RPC call
NameTypeOptionalDescription
eventEventNoNone
dataTEvents[Event]NoNone
timeoutDurationnumberYesNone
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