reTry

fun reTry(delay: Long, reason: String): Boolean


abstract fun reTry(delay: Long, reason: String, backupUrl: String? = null): Boolean

Retries to connect with the given delay. You can pass an optional backupUrl if you'd like to connect to your backup server instead of the original one. Given backupUrl replaces the original one.