@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.
- package/bundles/hivegpt-hiveai-angular.umd.js +7 -3
- 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/chat-drawer/chat-drawer.component.js +8 -4
- package/fesm2015/hivegpt-hiveai-angular.js +7 -3
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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;
|