@opens/rabbitmq 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,13 +6,11 @@ This library is a lightweight wrapper around RabbitMQ that simplifies publishing
6
6
 
7
7
  ### Initialization
8
8
 
9
- To start using `PubSubMQ`, create an instance and initialize the connection to RabbitMQ:
9
+ To start using `PubSubMQ`, create an instance and initialize the connection to RabbitMQ. This must be done first:
10
10
 
11
11
  ```typescript
12
- import { connect } from 'amqp-connection-manager';
13
12
  import { pubsub } from './rabbitmq';
14
13
 
15
-
16
14
  pubsub.start({
17
15
  hostname: 'localhost',
18
16
  port: 5672,
@@ -41,9 +39,6 @@ pubsub.subscribe({
41
39
  bindingKey: 'my-routing-key',
42
40
  durable: true,
43
41
  prefetch: 1,
44
- consumer: async (data, metadata) => {
45
- console.log('Received:', data);
46
- },
47
42
  up: async () => console.log('Consumer is up'),
48
43
  down: async () => console.log('Consumer is down'),
49
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opens/rabbitmq",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A wrapper around common message brokers",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",