tnx-shared 5.3.315 → 5.3.316

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.
@@ -5973,6 +5973,7 @@
5973
5973
  this.maxRetryTimes = 10;
5974
5974
  this.isInited = false;
5975
5975
  this.isInitedFull = false;
5976
+ this.isSingleSignalR = false;
5976
5977
  this.wait = function (ms) { return new Promise(function (r) { return setTimeout(r, ms); }); };
5977
5978
  this._moduleConfig = this._moduleConfigService.getConfig();
5978
5979
  this.hubsSetting = this._moduleConfig.environment.signalrConfig.hubs;
@@ -6019,7 +6020,7 @@
6019
6020
  _a.label = 8;
6020
6021
  case 8:
6021
6022
  while (this.delayStarters.length > 0) {
6022
- this.delayStarters.pop()();
6023
+ this.delayStarters.pop();
6023
6024
  }
6024
6025
  this.connected = true;
6025
6026
  return [2 /*return*/];
@@ -6032,6 +6033,7 @@
6032
6033
  return __generator(this, function (_a) {
6033
6034
  switch (_a.label) {
6034
6035
  case 0:
6036
+ this.isSingleSignalR = true;
6035
6037
  if (this.isInitedFull) {
6036
6038
  return [2 /*return*/];
6037
6039
  }
@@ -6057,7 +6059,7 @@
6057
6059
  _a.sent();
6058
6060
  this.autoReconnect(this.hubs['PublicHub']);
6059
6061
  while (this.delayStarters.length > 0) {
6060
- this.delayStarters.pop()();
6062
+ this.delayStarters.pop();
6061
6063
  }
6062
6064
  this.connected = true;
6063
6065
  return [2 /*return*/];
@@ -6085,7 +6087,8 @@
6085
6087
  return (topic === 'CommonHub' && this.hubsSetting && this.hubsSetting.enableCommonHub)
6086
6088
  || (topic === 'ConsistencyHub' && this.hubsSetting && this.hubsSetting.enableConsistencyHub)
6087
6089
  || (topic === 'NotificationHub' && this.hubsSetting && this.hubsSetting.enableNotificationHub)
6088
- || (topic === 'PublicHub');
6090
+ || (topic === 'PublicHub')
6091
+ || this.isSingleSignalR;
6089
6092
  };
6090
6093
  SignalRService.prototype.stop = function () {
6091
6094
  this._hubConnection.stop();