Hi @m.opoka, could you have a look at API detect unexpected client disconnection - #4 by oabid ?
The idea is that you can use a api_SetServerDisconnectHandler
to be notified when a server is being disconnected.
You can also use [manual-start]
to make your application connect & disconnect from a service manually, and eventually handle the reconnection using TryConnect