Skip to content

Commit 0e675ea

Browse files
committed
Merge branch 'release/1.2.2'
2 parents a32bc2d + 897aad0 commit 0e675ea

File tree

5 files changed

+728
-413
lines changed

5 files changed

+728
-413
lines changed

README.md

+19-5
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ const handler = message => {
4949
subscriber.start(handler)
5050
```
5151

52-
### Other Options
53-
5452
#### Publisher
5553

5654
The full options object is as follows
@@ -65,7 +63,8 @@ The full options object is as follows
6563
},
6664
onClose: () => { // optional
6765
console.log('The connection has closed.') // or do something clever
68-
}
66+
},
67+
...otherOptions // anything else you pass in gets passed directly to `amqp.connect`
6968
}
7069
```
7170

@@ -85,10 +84,25 @@ The full options object is as follows
8584
},
8685
onClose: () => { // optional
8786
console.log('The connection has closed.') // or do something clever
88-
}
87+
},
88+
...otherOptions // anything else you pass in gets passed directly to `amqp.connect`
8989
}
9090
```
9191

92+
### Other Options
93+
94+
As outlined above both `createPublisher` and `createPublisher` also accept other options.
95+
96+
These are passed straight onto `amqp.connect` under the hood. The options are:
97+
98+
- `clientProperties`: see [`connect.js`](https://github.com/amqp-node/amqplib/blob/main/lib/connect.js#L30)
99+
- `credentials`
100+
- `keepAlive`
101+
- `keepAliveDelay`
102+
- `noDelay`
103+
- `servername`
104+
- `timeout`
105+
92106
#### Examples
93107

94108
See some examples in the tests, and also:
@@ -125,7 +139,7 @@ npm install
125139
### To Start the queue server for integration testing
126140

127141
```sh
128-
docker-compose up -d
142+
docker compose up -d
129143
```
130144

131145
Runs Rabbit MQ.

0 commit comments

Comments
 (0)