class BaseRedisBroker
implements
IBaseBroker<TEvents>extends
AsyncEventEmitter<ToEventMap<TEvents>>abstract
export declare abstract class BaseRedisBroker<TEvents extends Record<string, any>> extends AsyncEventEmitter<ToEventMap<TEvents>> implements IBaseBroker<TEvents>
Helper class with shared Redis logic
Constructors
options: RedisBrokerOptions)
constructor(options: RedisBrokerOptions
Constructs a new instance of the BaseRedisBroker
class
protectedboolean listening :
Whether this broker is currently polling events
protectedreadonlyRequired<RedisBrokerOptions> options :
Options this broker is using
Used for Redis queues, see the 3rd argument taken by xadd
protectedreadonlyRedis streamReadClient :
Internal copy of the Redis client being used to read incoming payloads
Handles an incoming Redis event
Subscribes to the given events, grouping them by the given group name