class RPCRedisBroker
implements
IRPCBroker<TEvents, TResponses>extends
BaseRedisBroker<TEvents, TResponses>export declare class RPCRedisBroker<TEvents extends Record<string, any[]>, TResponses extends Record<keyof TEvents, any>> extends BaseRedisBroker<TEvents, TResponses> implements IRPCBroker<TEvents, TResponses>RPC broker powered by Redis
Constructors
constructor(redisClient: Redisoptions: RPCRedisBrokerOptions)
Constructs a new instance of the RPCRedisBroker class
protectedlistening : boolean
Whether this broker is currently polling events
Inherited from: BaseRedisBroker
protectedreadonlyoptions : Required<RPCRedisBrokerOptions>
Options this broker is using
protectedreadonlypromises : Map<string, InternalPromise>
protectedreadonlyredisClient : Redis
Inherited from: BaseRedisBroker
Used for Redis queues, see the 3rd argument taken by xadd
Inherited from: BaseRedisBroker
protectedreadonlystreamReadClient : Redis
Internal copy of the Redis client being used to read incoming payloads
Inherited from: BaseRedisBroker
Events this broker has subscribed to
Inherited from: BaseRedisBroker
call<Event extends keyof TEvents
>() : Promise<TResponses[Event]>
Event extends keyof TEvents
Makes an RPC call
Destroys the broker, closing all connections
Inherited from: BaseRedisBroker
Begins polling for events, firing them to listen
Inherited from: BaseRedisBroker
Subscribes to the given events
Inherited from: BaseRedisBroker
Unsubscribes from the given events
Inherited from: BaseRedisBroker