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

Callback when the server has started #575

Closed
jschneider opened this issue Nov 24, 2016 · 3 comments
Closed

Callback when the server has started #575

jschneider opened this issue Nov 24, 2016 · 3 comments
Milestone

Comments

@jschneider
Copy link
Contributor

I would like to have the possibility to register a callback, that is notified when the server has been started and is available.
That callback could be used to open a browser, send some status messages to other systems etc.

It would be just nice to be informed, when everything has been set up.

@jknack
Copy link
Member

jknack commented Nov 24, 2016

There is one already: http://jooby.org/doc/#application-life-cycle

@jschneider
Copy link
Contributor Author

Yes. I have seen (and tried) the onStart() method.
Unfortunately this methods is called way too early. A long time before the server has finished loading.

I want to know when everything has loaded and startet up.

@jknack
Copy link
Member

jknack commented Nov 24, 2016

oh now I get it what you want. onReady or onStarted?

@jknack jknack added this to the 1.0.1 milestone Nov 26, 2016
@jknack jknack closed this as completed in 7732212 Nov 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants