Is it necessary to wait after startServer()? #783
Answered
by
andsel
AlphonsusNguyen
asked this question in
Q&A
-
Hi everyone :) , Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
andsel
Mar 31, 2024
Replies: 1 comment 1 reply
-
Hi @AlphonsusNguyen actually there isn't yet an asynchronous way to get notified when the server is up and ready. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AlphonsusNguyen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.