https://kotlinlang.org logo
#ktor
Title
# ktor
z

zt

02/07/2023, 7:25 AM
using the network module how can I connect to a socket even if the server is not up? it throws an exception when I try connecting. Is there some way to wait until it's ready and then connect?
a

Aleksei Tirman [JB]

02/07/2023, 8:51 PM
You can connect to a server in a loop, catching a connection exception and sleeping between retries.
4 Views