Hi,
I got a mongoDatabase bind on a table and i would like to refresh hime quicker than he does at the moment.
For now, when I’m adding something in the db, the refresh can take around 10 litles seconds to react in my meteor table, but i’m notified in the code than my new record is displayable.
Here some code :
Html :
<table class="table table-striped table-hover " >
<thead>
<tr>
<th>Login</th>
</tr>
</thead>
<p>Last updated : {{lastUpdate}}</p>
{{#each userList}}
<tr class="terminalHS6_userClickable">
<td class="userLoginLeft"> > {{login}}</td>
</tr>
{{/each}}
</table>
Js :
Template.registerHelper('userList', function () {
return _telnet_users.find({});
});
isOK = function(){
// Here I want to refresh my table to display my new record quickly !
}
I tried to played with Session variable, subcription.ready() etc… and Deps.autorun to force it, but hadn’t chance until there ! :’(
Any idea how can I proceed ?
Thanks