RedisBroker
@rotorsoft/act-root / act-notify / RedisBroker
Class: RedisBroker
Defined in: libs/act-notify/src/redis.ts:52
Fan-out over redis pub/sub. Malformed payloads on the channel are dropped with a warning — the channel is a hint path, so garbage degrades latency for one wakeup, never correctness.
Implements
Constructors
Constructor
new RedisBroker(
options):RedisBroker
Defined in: libs/act-notify/src/redis.ts:57
Parameters
options
Returns
RedisBroker
Methods
publish()
publish(
message):Promise<void>
Defined in: libs/act-notify/src/redis.ts:63
Parameters
message
Returns
Promise<void>
Implementation of
Broker.publish
subscribe()
subscribe(
handler):Promise<BrokerDisposer>
Defined in: libs/act-notify/src/redis.ts:67
Parameters
handler
(message) => void
Returns
Promise<BrokerDisposer>
Implementation of
Broker.subscribe