UNPKG

@nestjstools/microservices-rabbitmq

Version:

Transport layer for NestJS Microservices with more configurations for RabbitMQ

11 lines (10 loc) 409 B
import { Connection } from 'rabbitmq-client'; import { RoutingMessage } from './routing-message'; export declare class AmqpMessageBus { private readonly exchange; private readonly connection; private readonly routingKey?; private readonly messagePublisher; constructor(exchange: any, connection: Connection, routingKey?: string | undefined); dispatch(message: RoutingMessage): void; }