I have a requirement where a timer is ran in the background of my app.
Every minutes it makes an http call to a web server.
In case of a particular state in my app: when at least two users are connected to my session i should make a different http call and increment a clock counter (every second) of a ViewComponent.
At the beginning i started doing the ticking in a clockMediator calling the proxy when needed and updating the view as well.
Should i instead have the the timer and counting of "total seconds" and "total seconds with multi users" in the proxy ? Emitting a notification every seconds when multi user condition is true ?.
Thanks for your wise advices,