RedisQueue.subscribe() method
Creates 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>