@azteam/rabbitmq-async 1.0.227 → 1.0.230

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.
@@ -104,7 +104,7 @@ var RabbitMQAsync = /*#__PURE__*/function () {
104
104
  };
105
105
  _context3.prev = 2;
106
106
  _context3.next = 5;
107
- return _amqplib["default"].connect("amqp://".concat(this.host), opt);
107
+ return _amqplib["default"].connect("amqp://".concat(this.host, "?heartbeat=180"), opt);
108
108
  case 5:
109
109
  this.client = _context3.sent;
110
110
  _context3.next = 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/rabbitmq-async",
3
- "version": "1.0.227",
3
+ "version": "1.0.230",
4
4
  "description": "N/A",
5
5
  "keywords": [
6
6
  "toda",
@@ -19,6 +19,6 @@
19
19
  "@azteam/util": "1.0.64",
20
20
  "amqplib": "0.8.0",
21
21
  "fs-extra": "10.1.0",
22
- "lodash": "4.17.21"
22
+ "lodash": "4.17.23"
23
23
  }
24
24
  }
@@ -39,7 +39,7 @@ class RabbitMQAsync {
39
39
  this._alert('connecting', 'MQ connecting...');
40
40
  const opt = {credentials: amqp.credentials.plain(this.username, this.password)};
41
41
  try {
42
- this.client = await amqp.connect(`amqp://${this.host}`, opt);
42
+ this.client = await amqp.connect(`amqp://${this.host}?heartbeat=180`, opt);
43
43
  this.channel = await this.client.createChannel();
44
44
  this.channel.prefetch(1);
45
45
  this.connected = true;