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

Expose events for server backoff #84

Closed
n1k0 opened this issue Jul 20, 2015 · 1 comment
Closed

Expose events for server backoff #84

n1k0 opened this issue Jul 20, 2015 · 1 comment

Comments

@n1k0
Copy link
Contributor

n1k0 commented Jul 20, 2015

Refs #68, #82. We should expose public events for server backoff, so users can subscribe to them to handle UI changes accordingly, eg:

kinto.on("server-backoff", seconds => {
  if (seconds > 0) 
    $("#sync-btn").disable();
  else 
    $("#sync-btn").enable();
});
n1k0 added a commit that referenced this issue Jul 22, 2015
Refs #81, #84 - Add support for backoff and deprecated public events.
@n1k0
Copy link
Contributor Author

n1k0 commented Jul 22, 2015

Fixed by #88.

@n1k0 n1k0 closed this as completed Jul 22, 2015
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

1 participant