-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ping is not working #69
Comments
Same issue, can not subscribe to ping. |
@pptyasar and @sameer-coditas , you should both update this issue with things like a) version of the library Otherwise, I'd expect troubleshooting this will be hard for the maintainers and community at large. |
@pptyasar @sameer-coditas is this issue still happening || valid? |
I think the issue is ping$ only gets initialized after startWatching() has been called. So, if someone subscribes to ping$ before startWatching() is called there will be no Observable to subscribe to. |
I also had issues with the ping. Sometimes the ping wouldn't start. And when it started, I could never get it to stop, despite resetting the timer, stopping the timer, or stopping watching. I ended up just writing my own ping timer that worked with this package and now it's doing everything I need. |
Can you share a sample? I'm living the same problem |
Cannot read property 'subscribe' of undefined
.... constructor( private userIdle: UserIdleService) {...
....this.userIdle.ping$.subscribe(() => console.log("PING"));....
The text was updated successfully, but these errors were encountered: