File tree 5 files changed +728
-413
lines changed
5 files changed +728
-413
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ const handler = message => {
49
49
subscriber .start (handler)
50
50
```
51
51
52
- ### Other Options
53
-
54
52
#### Publisher
55
53
56
54
The full options object is as follows
@@ -65,7 +63,8 @@ The full options object is as follows
65
63
},
66
64
onClose : () => { // optional
67
65
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`
69
68
}
70
69
```
71
70
@@ -85,10 +84,25 @@ The full options object is as follows
85
84
},
86
85
onClose : () => { // optional
87
86
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`
89
89
}
90
90
```
91
91
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
+
92
106
#### Examples
93
107
94
108
See some examples in the tests, and also:
@@ -125,7 +139,7 @@ npm install
125
139
### To Start the queue server for integration testing
126
140
127
141
``` sh
128
- docker- compose up -d
142
+ docker compose up -d
129
143
```
130
144
131
145
Runs Rabbit MQ.
You can’t perform that action at this time.
0 commit comments