I think it will be useful if html Client could ask server if it is ready to accept new connections with a as fast as possible request and without actually trying to connect to the server. It could be used to toggle GUI elements on a web page (like "connect" button)
Also it probably should have an async handler.
If you can get a response from it, then it is ready.
Just load the favicon for example. Use an XMLHttpRequest with a low timeout.
Replying to Antoine Martin:
If you can get a response from it, then it is ready.
Just load the favicon for example. Use an XMLHttpRequest with a low timeout.
But what if the server already has a client that doesn't want to share or what if the server is shutting down/starting?
But what if the server already has a client that doesn't want to share
Well, that's a new requirement added to this ticket only now. Try r15583: hit the "/Info" URL on your xpra http server. The information provided at that URL must be limited as the connection is unauthenticated. It may still change. (maybe adding the authentication requirements would be helpful for the UI)
or what if the server is shutting down/starting?
For as long as the server is available, it will handle the connection. It will not accept new connection when starting or shutting down.
Not heard back, closing.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1495