@hivegpt/hiveai-angular 0.0.266 → 0.0.267

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.
@@ -819,18 +819,22 @@
819
819
  }, 200);
820
820
  };
821
821
  ChatDrawerComponent.prototype.initializeSocket = function () {
822
+ console.log('YES INIT');
822
823
  var conversation_id = this.conversationService.getKey(this.botId);
823
824
  this.socketService.registerUserSpecificHiveSocket(this.botId, conversation_id);
824
825
  };
825
826
  ChatDrawerComponent.prototype.listenSockets = function () {
826
827
  var _this = this;
827
- if (this.eventSubscription) {
828
- this.eventSubscription.unsubscribe();
829
- }
828
+ // if (this.eventSubscription) {
829
+ // this.eventSubscription.unsubscribe();
830
+ // }
831
+ console.log('Listen Socket');
830
832
  this.eventSubscription = this.conversationService
831
833
  .getUserSpecificNotification()
832
834
  .subscribe(function (res) {
833
835
  var _a, _b, _c;
836
+ console.log('Listen Socket response');
837
+ console.log(res);
834
838
  // Check if OtherFields exists in the response
835
839
  if ((_a = res === null || res === void 0 ? void 0 : res.m) === null || _a === void 0 ? void 0 : _a.OtherFields) {
836
840
  var _e = (_b = res === null || res === void 0 ? void 0 : res.m) === null || _b === void 0 ? void 0 : _b.OtherFields, conversation_id = _e.conversation_id, bot_id = _e.bot_id, message_id_1 = _e.message_id, answer = _e.answer, web_results = _e.web_results, graphs = _e.graphs, execution_graphs = _e.execution_graphs, online_search_terms = _e.online_search_terms, suggestions = _e.suggestions;