Add notification and handler for metadata update

This commit is contained in:
aditya.chandel
2025-01-10 17:37:35 -07:00
parent 3407caeb5f
commit 41e59b39ca
8 changed files with 95 additions and 50 deletions
+4
View File
@@ -27,6 +27,10 @@ export class AppComponent implements OnInit {
}
});
this.rxStompService.watch('/topic/metadata-update').subscribe((message: Message) => {
this.bookService.handleUpdateMetadata(JSON.parse(message.body));
});
this.rxStompService.watch('/topic/log').subscribe((message: Message) => {
let logNotification = parseLogNotification(message.body);
this.eventService.handleIncomingLog(logNotification);