Reconnect Config Builder
Functions
Link copied to clipboard
A callback called each time the web socket is successfully reconnected.
Link copied to clipboard
fun reconnectWhen(predicate: suspend (exception: Throwable, attempt: Int) -> Boolean)
Content copied to clipboard
Registers a predicate to decide whether the web socket should be reconnected when the given exception occur. The attempt parameter is the index of the current reconnection attempt in a series of retries.