My Component A has a websocket logic that looks like this:
this.socketService.connect('/socket_url');
this.statusSubscription = this.socketService.messages
.subscribe(result => {
if (result !== 'pong') {
// update Component B with the received response
}
});
I'm curious about how I can keep Component B updated whenever a websocket event is triggered.