Skip to content
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

Open
pptyasar opened this issue Jan 7, 2020 · 6 comments
Open

Ping is not working #69

pptyasar opened this issue Jan 7, 2020 · 6 comments

Comments

@pptyasar
Copy link

pptyasar commented Jan 7, 2020

Cannot read property 'subscribe' of undefined

.... constructor( private userIdle: UserIdleService) {...

....this.userIdle.ping$.subscribe(() => console.log("PING"));....

@sameer-coditas
Copy link

Same issue, can not subscribe to ping.

@Bwvolleyball
Copy link

@pptyasar and @sameer-coditas , you should both update this issue with things like

a) version of the library
b) version of angular you are using
c) maybe even a minimal reproduction project

Otherwise, I'd expect troubleshooting this will be hard for the maintainers and community at large.

@celvin
Copy link

celvin commented Aug 18, 2020

@pptyasar @sameer-coditas is this issue still happening || valid?

@battika
Copy link

battika commented Aug 22, 2020

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.

@tclark333
Copy link

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.

@dadrocker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants