Project Library Trigger or Action

Hi,
I wrote a code in Project Library script and I want it to run every 5 seconds in vision page.
What can I do for it ?
The script is not called with the Gateway Event, so I don’t know what to do.
Thank you.

There are client events that run on a timer if you want it to trigger on all the pages, i would do it there.
if only on one page you could probably make a custom property with an expression like now(5000) and use an onchange event for that prop

There’s a timer component that you can use in a window if you only want the script to run when a specific window is open. Otherwise, use a client timer event to call your project script.