You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExchangeClientFactory.websocket(ExchangeVendor.BINANCE)
.createDepthSnapshot(listOf(CurrencyPair(Currency.BTC, Currency.USDT)))
// retry when connetion drops
.doOnTerminate { throwRuntimeException("terminated!") }
.retryWhen { throwablePublisher ->
throwablePublisher
.doOnNext { log.error(it.message, it) }
.flatMap { Mono.delay(Duration.ofSeconds(2)) } // retry wait time
}
.doOnNext { /* do something you want */ }
half connection checker(ping/pong handler) not implemented in binance yet. so upper reconnection code is not work with half connection.
but other case it will work fine :).
Would this work? Looks like it does reconnect after wifi disconnection. I just don't know if it will work after 24h. I heard binance would drop connection after 24h?
Hi Please let me know. Thank you
The text was updated successfully, but these errors were encountered: