@mtgame/core 1.0.18 → 1.0.20

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.
@@ -15672,12 +15672,15 @@
15672
15672
  });
15673
15673
  _this.centrifuge.on('disconnected', function () {
15674
15674
  _this.connectedSubject.next(false);
15675
- _this.initializeEngineSubject.next(false);
15676
15675
  });
15677
15676
  _this.centrifuge.connect();
15678
15677
  });
15679
15678
  }
15680
- return this.initializeEngineSubject.pipe(operators.filter(function (item) { return Boolean(item); }), operators.take(1));
15679
+ return this.initializeEngineSubject.pipe(operators.filter(function (item) { return Boolean(item); }), operators.take(1), operators.tap(function () {
15680
+ if (_this.centrifuge && _this.centrifuge.state === 'disconnected') {
15681
+ _this.centrifuge.connect();
15682
+ }
15683
+ }));
15681
15684
  };
15682
15685
  CentrifugoService.prototype.publish = function (channel, message) {
15683
15686
  var _this = this;