Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neverlosemypassion99 opened this issue Jan 24, 2024 · 0 comments

Comments

@neverlosemypassion99
Copy link

neverlosemypassion99 commented Jan 24, 2024

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=//&listenKey=
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant