Hi All,
Does anyone know if it possible to implement a signaling event to an object present in every active session on the web?
Fo r example, a user takes an action that updates a file and we would like that every active list reflecting that file, on every active user, to be refreshed. Is this possible to implement?
Many thanks,
Send signal to every active session object
-
cesarrafael
- Posts: 32
- Joined: Tue Dec 01, 2015 3:44 am
Re: Send signal to every active session object
Hi Rafael
Brendan suggested a way to handle a refresh for several views here:
viewtopic.php?f=3&t=2648&p=7879&hilit=brendan#p7879
Something like that could work for you?
kind regards,
Brendan suggested a way to handle a refresh for several views here:
viewtopic.php?f=3&t=2648&p=7879&hilit=brendan#p7879
Something like that could work for you?
kind regards,
-
cesarrafael
- Posts: 32
- Joined: Tue Dec 01, 2015 3:44 am
Re: Send signal to every active session object
Thanks Dino, But I don't think it does what I need... What would be nice was a "global" signal, like when an event is triggered every object listening to that event would execute some code independently of the session or user running it... It's probably hard to implement in stateless applications...
Re: Send signal to every active session object
You may want to review the VLF-ONE and how it works to define events and how the command handlers/filters can subscribe to events using a "framework manager". That it is basically doing already in LANSA what you want to implement right now:
https://docs.lansa.com/15/en/lansa048/i ... ight=event
https://docs.lansa.com/15/en/lansa048/i ... ight=event