Hi Siemen,
I never used the Comet part of Iliad and I don't know a lot about it.
But what I found working in the ILCometCounter is that :
- open the app in a first browser, increment the counter ;
- open the app in a second browser, the counter will be allready
incremented ;
- increment/decrement it in either browser and the change is immediatly
visible in the other browser.
From my understanding in the increase method :
- self markDirty is for updating the session where the action was done ;
- self triggerCometEvent: ILCometCounterChangedEvent new is for
updating the other opened sessions of the ILCometCounterApplication.
I am not sure why your test with timesRepeat doesn't work.
I tried to update the counter from a Playground with :
ILCometCounterModel instance increase.
but it isn't working as the singleton model is updated but the event
isn't sended to Iliad sessions.
Looking more to the Comet code It doesn't seemed to be an entry point
to send events from outside Iliad. It should be not too hard to add one
however.
Cheers,
Benoit
Le 13/02/20 à 14:15, Siemen Baader a écrit :
> --
> You received this message because you are subscribed to the Google
> Groups "Iliad project" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
iliad+un...@googlegroups.com
> <mailto:
iliad+un...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/iliad/CAM47ZxpZEv-Ef0SJgBniJ59DkTHLeAJBoQ-pJtYVE2YJqhhJew%40mail.gmail.com
> <
https://groups.google.com/d/msgid/iliad/CAM47ZxpZEv-Ef0SJgBniJ59DkTHLeAJBoQ-pJtYVE2YJqhhJew%40mail.gmail.com?utm_medium=email&utm_source=footer>.