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

autorefresh the page occasionally #47

Closed
erosson opened this issue Sep 1, 2014 · 4 comments
Closed

autorefresh the page occasionally #47

erosson opened this issue Sep 1, 2014 · 4 comments
Milestone

Comments

@erosson
Copy link
Member

erosson commented Sep 1, 2014

http://www.reddit.com/r/swarmsim/comments/2f54ln/017_better_buy_buttons/ck63zvt

we probably don't want ancient versions of the game running

@erosson erosson closed this as completed in 1fb1de5 Sep 1, 2014
@erosson erosson reopened this Sep 1, 2014
@erosson
Copy link
Member Author

erosson commented Sep 1, 2014

on second thought, this is more complex than just refreshing - I want people to be able to play offline on their phones, it's okay to let the page go out of date if there's no connection. maybe ping to test for connectivity first.

in fact, we can treat this like any other autoupdater: periodically ask the server what the current version is ($interval $http.get /version.txt), and then

  • do nothing if the server doesn't respond
  • do nothing if we're up-to-date already
  • refresh the page if the server is available and responds that we're out of date

@erosson erosson closed this as completed in 67a4846 Sep 1, 2014
@erosson
Copy link
Member Author

erosson commented Sep 1, 2014

I said reopen

@erosson erosson reopened this Sep 1, 2014
@erosson erosson modified the milestone: 0.1.x Sep 1, 2014
@erosson erosson closed this as completed in 3d17e4d Sep 3, 2014
@erosson
Copy link
Member Author

erosson commented Sep 3, 2014

auto-update pings are combined with timecheck pings, so no new traffic added for this.

if we're offline, it'll give up and do nothing.

@Shoelace
Copy link
Contributor

Shoelace commented Apr 6, 2015

the appcache mechanism in #388 caters for some of this. allowing offline access.. notification of new version etc..

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

2 participants