RedisBroker
@rotorsoft/act-root / act-notify / RedisBroker
Class: RedisBroker
Defined in: libs/act-notify/src/redis.ts:43
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:48
Parametersโ
optionsโ
Returnsโ
RedisBroker
Methodsโ
publish()โ
publish(
message):Promise<void>
Defined in: libs/act-notify/src/redis.ts:54
Parametersโ
messageโ
Returnsโ
Promise<void>
Implementation ofโ
Broker.publish
subscribe()โ
subscribe(
handler):Promise<BrokerDisposer>
Defined in: libs/act-notify/src/redis.ts:58
Parametersโ
handlerโ
(message) => void
Returnsโ
Promise<BrokerDisposer>
Implementation ofโ
Broker.subscribe