reconnectWhen
fun reconnectWhen(queueMessages: Boolean = true, reconnectWhen: (Throwable) -> Boolean?): PhoenixNetworkTransport.Builder
Content copied to clipboard
Configure the PhoenixNetworkTransport to reconnect the socket automatically when a network error happens.
Parameters
queueMessages
a boolean indicating whether or not all already registered subscriptions should try to subscribe again
reconnectWhen
a function taking the error as a parameter and returning 'true' to reconnect automatically or 'false' to forward the error to all listening Flow