We have a dotvvm app that displays real-time data. We would like to have this updated every 5 seconds. It is loaded in the InitializeAsync Method:
public override async Task PreRender()
{
if (!Context.IsPostBack)
await InitializeAsync();
await base.PreRender();
}
This sets UsersTotal which is used in the dotHtml:
<span IncludeInPage="{value: HasUsers}">{{value: UsersTotal}}</span>
We want to refresh this not after the user clicks a button, but automatically. All the binding options appear to base based on some event. Does anybody know of a way to accomplish this within the DotVVM framework? Or is there some official way to implement this with a timer in javascript?
Thank you for your time.