This repository was archived by the owner on Aug 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +728
-413
lines changed Expand file tree Collapse file tree 5 files changed +728
-413
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ const handler = message => {
4949subscriber .start (handler)
5050```
5151
52- ### Other Options
53-
5452#### Publisher
5553
5654The 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
94108See 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
131145Runs Rabbit MQ.
You can’t perform that action at this time.
0 commit comments