@mtgame/core 1.0.18 → 1.0.21

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.
@@ -833,6 +833,18 @@
833
833
  SportTypes[SportTypes["wrestball"] = 24] = "wrestball";
834
834
  SportTypes[SportTypes["wrestball_classic"] = 25] = "wrestball_classic";
835
835
  SportTypes[SportTypes["winline_basket"] = 26] = "winline_basket";
836
+ SportTypes[SportTypes["dota_root"] = 27] = "dota_root";
837
+ SportTypes[SportTypes["dota"] = 28] = "dota";
838
+ SportTypes[SportTypes["cs_root"] = 29] = "cs_root";
839
+ SportTypes[SportTypes["cs"] = 30] = "cs";
840
+ SportTypes[SportTypes["other"] = 31] = "other";
841
+ SportTypes[SportTypes["chess"] = 32] = "chess";
842
+ SportTypes[SportTypes["table_tennis"] = 33] = "table_tennis";
843
+ SportTypes[SportTypes["billiard"] = 34] = "billiard";
844
+ SportTypes[SportTypes["darts"] = 35] = "darts";
845
+ SportTypes[SportTypes["badminton"] = 36] = "badminton";
846
+ SportTypes[SportTypes["padel_tennis"] = 37] = "padel_tennis";
847
+ SportTypes[SportTypes["cyber_sport"] = 38] = "cyber_sport";
836
848
  })(exports.SportTypes || (exports.SportTypes = {}));
837
849
  exports.Sport = /** @class */ (function (_super) {
838
850
  __extends(Sport, _super);
@@ -914,6 +926,12 @@
914
926
  Sport.prototype.isWrestball = function () {
915
927
  return this.id === exports.SportTypes.wrestball || this.parentId === exports.SportTypes.wrestball;
916
928
  };
929
+ Sport.prototype.isOther = function () {
930
+ return this.id === exports.SportTypes.other || this.parentId === exports.SportTypes.other;
931
+ };
932
+ Sport.prototype.isIndividualSport = function () {
933
+ return this.isOther() && this.id !== exports.SportTypes.badminton;
934
+ };
917
935
  Sport.toFront = function (data) {
918
936
  return null;
919
937
  };
@@ -15672,12 +15690,15 @@
15672
15690
  });
15673
15691
  _this.centrifuge.on('disconnected', function () {
15674
15692
  _this.connectedSubject.next(false);
15675
- _this.initializeEngineSubject.next(false);
15676
15693
  });
15677
15694
  _this.centrifuge.connect();
15678
15695
  });
15679
15696
  }
15680
- return this.initializeEngineSubject.pipe(operators.filter(function (item) { return Boolean(item); }), operators.take(1));
15697
+ return this.initializeEngineSubject.pipe(operators.filter(function (item) { return Boolean(item); }), operators.take(1), operators.tap(function () {
15698
+ if (_this.centrifuge && _this.centrifuge.state === 'disconnected') {
15699
+ _this.centrifuge.connect();
15700
+ }
15701
+ }));
15681
15702
  };
15682
15703
  CentrifugoService.prototype.publish = function (channel, message) {
15683
15704
  var _this = this;