Skip to main content
Version: Current

RedisSubscriber

@rotorsoft/act-root


@rotorsoft/act-root / act-notify / RedisSubscriber

Type Alias: RedisSubscriber

RedisSubscriber = object

Defined in: libs/act-notify/src/redis.ts:20

A node-redis(v4+)-shaped client in subscriber mode.

Methodsโ€‹

subscribe()โ€‹

subscribe(channel, listener): Promise<unknown>

Defined in: libs/act-notify/src/redis.ts:21

Parametersโ€‹

channelโ€‹

string

listenerโ€‹

(message) => void

Returnsโ€‹

Promise<unknown>


unsubscribe()โ€‹

unsubscribe(channel): Promise<unknown>

Defined in: libs/act-notify/src/redis.ts:25

Parametersโ€‹

channelโ€‹

string

Returnsโ€‹

Promise<unknown>