binance-futures-connector-java icon indicating copy to clipboard operation
binance-futures-connector-java copied to clipboard

how to solve "A single connection is only valid for 24 hours; expect to be disconnected at the 24 hour mark"

Open neverlosemypassion99 opened this issue 1 year ago • 0 comments

I have tried two solutions. 1.Restarting regularly

oldClient.closeAllConnections(); ThreadUtil.sleep(5000); startBinanceWs(); // reconnect

But I got an error: the connection will enter onFailureCallback

2.I want to use the official website's method: "Combined streams are accessed at /stream?streams=<streamName1>/<streamName2>/<streamName3>&listenKey=<validateListenKey> <validateListenKey> must be a valid listenKey when you establish a connection" But it seems that it doesn't support.

Do you have any good solutions? I'm waiting for your reply online, thank you very much!

neverlosemypassion99 avatar Jan 24 '24 08:01 neverlosemypassion99