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

Add heartbeat #47

Closed
TheSavior opened this issue Jul 20, 2016 · 4 comments
Closed

Add heartbeat #47

TheSavior opened this issue Jul 20, 2016 · 4 comments

Comments

@TheSavior
Copy link

Some of the downstream projects include a heartbeat function that would be great to find a way to pull it into this upstream.

For example: https://github.com/leegao/pokemongo-api-demo/blob/simulation/main.py#L198

@Cl0v1s
Copy link

Cl0v1s commented Jul 20, 2016

What does it do actually ? :)

@TheSavior
Copy link
Author

I'm not 100%, but typically a heartbeat is used to keep a session alive. So if you signed in, and didn't have any additional requests within a certain time period, the server would sign kill the session. A heartbeat is typically a special endpoint that is called to tell the server you are still there and not to kill the session.

But I'm just making an assumption on the behavior in this specific case based on the naming. Perhaps @leegao has more thoughts.

@tejado
Copy link
Owner

tejado commented Jul 20, 2016

Actually, the method is doing the complete get_map_object request with some additional stuff. The additional stuff seems to be the heartbeat, also described here: https://www.reddit.com/r/pokemongodev/comments/4tn3lm/the_heartbeats/

I will check it :)

@Nostrademous
Copy link

the heartbeat is the same thing as get_map_objects request AFAIK .... just people called it heartbeat...

@tejado tejado closed this as completed Jul 26, 2016
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

4 participants