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

Need a way to refresh from the server #18

Open
arobson opened this issue Jan 30, 2015 · 1 comment
Open

Need a way to refresh from the server #18

arobson opened this issue Jan 30, 2015 · 1 comment

Comments

@arobson
Copy link
Contributor

arobson commented Jan 30, 2015

I'm still thinking this through, but at least for the top-level, it would be nice if there were a way to tell halon to re-pull from the root url via options and refresh the top-level resource metadata.

halon.refresh(); // ?

I think for any other entity, just calling the self command should likely be the way to do this (although a way to ship updates into the resource instances from a websocket would be sweet).

I don't know how often/useful this would be in the browser, but for long-running server-side API consumers, (like the REPL I'm working on) it's a must have.

/cc @ifandelse

@dcneiner
Copy link
Contributor

Would you need to manually trigger this, or could it be some sort of configuration option (Or both!). Something like a cache timeout where Halon would use the result for 5 seconds, or 4 minutes, or indefinitely (default)?

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