# Timer update gateway to refreshBinding on view

**URL:** <https://forum.inductiveautomation.com/t/timer-update-gateway-to-refreshbinding-on-view/63970>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 12, 2022, 4:02pm UTC](https://forum.inductiveautomation.com/t/timer-update-gateway-to-refreshbinding-on-view/63970 "2022-09-12T16:02:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.cascales](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@g.cascales](https://forum.inductiveautomation.com/u/g.cascales)\
**Post date:** [September 12, 2022, 4:02pm UTC](https://forum.inductiveautomation.com/t/timer-update-gateway-to-refreshbinding-on-view/63970/1 "2022-09-12T16:02:45Z")

</div>

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:

 ![gateway](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/6/a6445f4dd6cf13bd6a2f0db4aaf24cd9a23c4dd4.png)

root (View):

 ![rootView](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/2/42a63ec4cdf21192b3661230ac580d353aa55c39.png)

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!

---

<div class="post-metadata">

**Author:** ![vasanth.p](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vasanth.p/32/38099_2.png) [@vasanth.p](https://forum.inductiveautomation.com/u/vasanth.p)\
**Post date:** [September 12, 2022, 7:07pm UTC](https://forum.inductiveautomation.com/t/timer-update-gateway-to-refreshbinding-on-view/63970/2 "2022-09-12T19:07:55Z")

</div>

> [@system.util.sendMessage to Perspective session](https://forum.inductiveautomation.com/t/system-util-sendmessage-to-perspective-session/58322):
>
> I’m trying to figure out how to send a message from an async method from the Gateway, to a Perspective session right now, I am trying to use system.util.sendMessage("myProject", "refresh-production-data", scope="S") In my table in Perspective I have the following I know the message is sent, as when I use different scope in the sendMessage, I have errors in Ignition logs Is it how it is supposed to work?

This might help.
