Skip to content

Is it necessary to wait after startServer()? #783

Answered by andsel
AlphonsusNguyen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AlphonsusNguyen actually there isn't yet an asynchronous way to get notified when the server is up and ready.
I'll provide it in the future, but as today you can sleep (the startup it's really fast) or you could ping the MQTT interface with a polling client that tries to connect.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlphonsusNguyen
Comment options

Answer selected by AlphonsusNguyen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants