Closed KalaRaja closed 5 years ago
Try the following code, whenever the user does any event then the idle$ subscribe will get emitted. resetTimer method will reset the timer again.
this.userIdle.startWatching(300).subscribe((res) => {
});
this.userIdle.idle$.subscribe((res) => {
this.userIdle.resetTimer();
});
Property 'idle$' is private and only accessible within class 'BnNgIdleService'
Though I can update it to public, this would not work well for the team
Is there a workaround for this? Since I can't access 'idle$'?
when user moves mouse or does something such that he is not idle anymore, then the subscription 'res' does not turn false.