I have a scenario where an event is triggered every 10 seconds.
After subscribing to the event on the receiving end, I need to figure out how to send data back to the class responsible for emitting the event.
constructor(@Inject(ABC.XYZ) private events: XYZEvents){
this.events.event1.subscribe(()=> {
console.log("Event1")
//Need to send some data here
})
}