onReconnectAttempt

abstract fun onReconnectAttempt(handler: suspend (Int) -> Unit)

Register a handler for reconnection attempts. Called before each reconnection attempt.

Parameters

handler

Suspend function called before reconnection with attempt number