Page 1 of 1

Send signal to every active session object

Posted: Fri Nov 11, 2022 2:20 am
by cesarrafael
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,

Re: Send signal to every active session object

Posted: Wed Nov 16, 2022 10:16 am
by Dino
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,

Re: Send signal to every active session object

Posted: Fri Nov 25, 2022 9:10 pm
by cesarrafael
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

Posted: Tue Nov 29, 2022 2:46 am
by Dino
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