@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.
- package/bundles/hivegpt-hiveai-angular.umd.js +9 -0
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/socket-service.service.js +9 -1
- package/fesm2015/hivegpt-hiveai-angular.js +8 -0
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/socket-service.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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) {
|