You're viewing archived documentation for @imqueue/core v2.0.26. APIs may differ from the current release. View the latest version ↗

RedisQueue.subscribe() method

Creates a subscription channel over redis and sets up channel data read handler

Signature:

subscribe(channel: string, handler: (data: JsonObject) => any): Promise<void>;

Parameters

Parameter

Type

Description

channel

string

handler

(data: JsonObject) => any

{Promise}

Returns:

Promise<void>