@hivegpt/hiveai-angular 0.0.271 → 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) {