Timer update gateway to refreshBinding on view

Hello there!

I have a view with some bindings. Instead of polling for each binding I decided to update all the bindings with a trigger (i.e. a message handler). So I decided to create a Gateway Event (Timer every 30 seconds) and in the view (root) I added the corresponding message handler. See attached pictures:

Gateway Event Script:

root (View):

The code “onMessageReceived” it is working because I tried sendMessage on a button click.

What am I missing? I would like to update the bindings on the view (no matter how many sessions or clients have opened the view/page) every X (30 for now) seconds.

Thanks in advance!

This might help.

1 Like