@hivegpt/hiveai-angular 0.0.270 → 0.0.272

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.
@@ -601,6 +601,7 @@
601
601
 
602
602
  var SocketService = /** @class */ (function () {
603
603
  function SocketService(conversationService, notificationSocket) {
604
+ var _this = this;
604
605
  this.conversationService = conversationService;
605
606
  this.notificationSocket = notificationSocket;
606
607
  this.isCommonSocketInitialized = false;
@@ -609,6 +610,14 @@
609
610
  this.messageQueue = [];
610
611
  this.releaseInterval = 1000;
611
612
  this.intervalSetup = false;
613
+ try {
614
+ this.notificationSocket.disconnect();
615
+ }
616
+ catch (error) {
617
+ }
618
+ setTimeout(function () {
619
+ _this.notificationSocket.connect();
620
+ }, 300);
612
621
  this.startReleasingMessages();
613
622
  }
614
623
  SocketService.prototype.isSocketInitialized = function (isCommon) {
@@ -2236,14 +2245,17 @@
2236
2245
  };
2237
2246
  }
2238
2247
  BotHtmlEditorComponent.prototype.ngOnInit = function () {
2248
+ var _this = this;
2239
2249
  this.environment = prod_environment;
2240
- if (this.isDocInEditMode) {
2241
- console.log('In Edit mode');
2242
- this.filldataInForm();
2243
- }
2244
- else {
2245
- console.log('In save mode');
2246
- }
2250
+ setTimeout(function () {
2251
+ if (_this.isDocInEditMode) {
2252
+ console.log('In Edit mode');
2253
+ _this.filldataInForm();
2254
+ }
2255
+ else {
2256
+ console.log('In save mode');
2257
+ }
2258
+ }, 2500);
2247
2259
  };
2248
2260
  BotHtmlEditorComponent.prototype.filldataInForm = function () {
2249
2261
  var _a, _b;