UNPKG

rabbitmq-event-manager

Version:

A nodeJS Event Manager to emit, and listen event through RabbitMQ

4 lines (3 loc) 311 B
import * as amqp from 'amqplib'; import { ConsumeHandlerFunction, IEventManagerOptions, IEventPayload } from '../../lib/interfaces'; export declare function consume(channel: amqp.Channel, queueName: string, listener: ConsumeHandlerFunction, options: IEventManagerOptions): Promise<IEventPayload | void | null>;