We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e785e8 commit 7e7ddb9Copy full SHA for 7e7ddb9
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@nestjstools/messaging-rabbitmq-extension",
3
- "version": "3.0.5",
+ "version": "3.1.0",
4
"description": "Extension to handle messages and dispatch them over AMQP protocol",
5
"author": "Sebastian Iwanczyszyn",
6
"private": false,
src/channel/amqp.channel.ts
@@ -19,6 +19,10 @@ export class AmqpChannel extends Channel<ExtensionAmqpChannelConfig> {
19
this.connection = undefined;
20
21
this.connection = await amqp.connect(this.config.connectionUri);
22
+ this.connection.on('close', (err: any) => {
23
+ console.error('AMQP Connection error:', err);
24
+ process.exit(0);
25
+ });
26
}
27
28
async onChannelDestroy(): Promise<void> {
0 commit comments