resumerefa.blogg.se

Idle timer js
Idle timer js





idle timer js

My class is based on Equiman’s and Frank Conijn’s answers. With each XHR we then can add information about his/her activity status (online / away), so we have a sense of active users in our system. We have a timer that starts ticking once a user stops interacting with the app. Why would you want a lazy check? Sometimes we use a periodic XHR (with setInterval), i.e., when a user watch a list of flights, rides, movies, orders, etc.

idle timer js

Improving on Equiman’s (original) answer: function idleLogout() ).then(/* show a list of elements */)







Idle timer js