1.0.7 • Published 4 years ago

@quickts/nestjs-amqp v1.0.7

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

nestjs-amqp

Installation

$ npm install @quickts/nestjs-amqp amqplib
$ npm install -D @types/amqplib

Usage

import { Publish, Consume, Publisher, AfterPublisherInit } from "@quickts/nestjs-redis";

@Injectable()
class OtherService implements AfterPublisherInit {
    @Publish("some_exchange")
    publish: Publisher;

    afterPublisherInit() {
        // do some ....
        this.publish("haha");
    }

    @Consume("some_exchange", "some_queue")
    onMessage(msg: any) {
        console.log(msg); // haha
    }
}
1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago