Fixes comment

This commit is contained in:
Vitor Pamplona
2025-10-02 17:42:16 -04:00
parent 04f5e8738a
commit 168caf0ec6

View File

@@ -69,7 +69,7 @@ import kotlin.coroutines.cancellation.CancellationException
* @property defaultOnConnect Callback executed after a successful connection, allowing subclasses to add initialization logic. * @property defaultOnConnect Callback executed after a successful connection, allowing subclasses to add initialization logic.
* *
* Reconnection Strategy: * Reconnection Strategy:
* - Uses exponential backoff to retry connections, starting with [DELAY_TO_RECONNECT_IN_MSECS] (500ms). * - Uses exponential backoff to retry connections, starting with [DELAY_TO_RECONNECT_IN_SECS] (500ms).
* - Doubles the delay between reconnection attempts in case of failure. * - Doubles the delay between reconnection attempts in case of failure.
* *
* Message Handling: * Message Handling:
@@ -86,7 +86,7 @@ open class BasicRelayClient(
val defaultOnConnect: (BasicRelayClient) -> Unit = { }, val defaultOnConnect: (BasicRelayClient) -> Unit = { },
) : IRelayClient { ) : IRelayClient {
companion object { companion object {
// waits 3 minutes to reconnect once things fail // minimum wait time to reconnect: 1 second
const val DELAY_TO_RECONNECT_IN_SECS = 1 const val DELAY_TO_RECONNECT_IN_SECS = 1
const val EVENT_MESSAGE_PREFIX = "[\"${EventMessage.LABEL}\"" const val EVENT_MESSAGE_PREFIX = "[\"${EventMessage.LABEL}\""
} }