@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.
@@ -353,17 +353,21 @@ class ChatDrawerComponent {
353
353
  }, 200);
354
354
  }
355
355
  initializeSocket() {
356
+ console.log('YES INIT');
356
357
  const conversation_id = this.conversationService.getKey(this.botId);
357
358
  this.socketService.registerUserSpecificHiveSocket(this.botId, conversation_id);
358
359
  }
359
360
  listenSockets() {
360
- if (this.eventSubscription) {
361
- this.eventSubscription.unsubscribe();
362
- }
361
+ // if (this.eventSubscription) {
362
+ // this.eventSubscription.unsubscribe();
363
+ // }
364
+ console.log('Listen Socket');
363
365
  this.eventSubscription = this.conversationService
364
366
  .getUserSpecificNotification()
365
367
  .subscribe((res) => {
366
368
  var _a, _b, _c;
369
+ console.log('Listen Socket response');
370
+ console.log(res);
367
371
  // Check if OtherFields exists in the response
368
372
  if ((_a = res === null || res === void 0 ? void 0 : res.m) === null || _a === void 0 ? void 0 : _a.OtherFields) {
369
373
  const { conversation_id, bot_id, message_id, answer, web_results, graphs, execution_graphs, online_search_terms, suggestions, } = (_b = res === null || res === void 0 ? void 0 : res.m) === null || _b === void 0 ? void 0 : _b.OtherFields;