RPC broker powered by Redis
Example
Extends
BaseRedisBroker<TEvents, TResponses>Implements
IRPCBroker<TEvents, TResponses>Constructs a new instance of the 
RPCRedisBroker class| Name | Type | Optional | Description | 
|---|---|---|---|
| redisClient | Redis | No | None | 
| options | RPCRedisBrokerOptions | No | None | 
Whether this broker is currently polling events
Inherited from BaseRedisBroker
Used for Redis queues, see the 3rd argument taken by xadd
Internal copy of the Redis client being used to read incoming payloads
Events this broker has subscribed to
Makes an RPC call
| Name | Constraints | Optional | Default | Description | 
|---|---|---|---|---|
| Event | keyof TEvents | No | None | 
| Name | Type | Optional | Description | 
|---|---|---|---|
| event | Event | No | None | 
| data | TEvents[Event] | No | None | 
| timeoutDuration | number | Yes | None | 
Destroys the broker, closing all connections
Begins polling for events, firing them to listen
Subscribes to the given events
| Name | Type | Optional | Description | 
|---|---|---|---|
| events | (keyof TEvents)[] | No | None | 
Unsubscribes from the given events
| Name | Type | Optional | Description | 
|---|---|---|---|
| events | (keyof TEvents)[] | No | None |