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

websocket freezes until enter key is pressed #268

Closed
magnito2 opened this issue May 1, 2018 · 2 comments
Closed

websocket freezes until enter key is pressed #268

magnito2 opened this issue May 1, 2018 · 2 comments

Comments

@magnito2
Copy link

magnito2 commented May 1, 2018

am using the bm.start_kline_socket(self.symbol, self.process_message, time_frame) method to recieve klines and print them to a shell. the problem is, sometimes, the connection hangs and does not print any klines while the market is moving. if it hangs for like 10 minutes, then I press the enter key, it now prints all the klines that had not been printed. I've checked issue 191 and 202 (almost similar) but could not find the solution.

@magnito2
Copy link
Author

this is a window's shell issue apparently, not the API. if the windows command prompt detects movement, it pauses the process and tries to capture input from user, pressing enter or any other key makes the process continue. am just posting the answer if anyone ever gets stuck here again. ;). go to CMD properties and uncheck QuickEditMode

@shirubei
Copy link

shirubei commented Mar 1, 2023

this is a window's shell issue apparently, not the API. if the windows command prompt detects movement, it pauses the process and tries to capture input from user, pressing enter or any other key makes the process continue. am just posting the answer if anyone ever gets stuck here again. ;). go to CMD properties and uncheck QuickEditMode

Thank you sir. I faced the similar problem and searched all over the web to see if it's a bug of websocket. Really appreciate your answer.

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

2 participants