We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from ws4py.client.threadedclient import WebSocketClient class Client(WebSocketClient): def opened(self): print("Open") def closed(self, code, reason=None): print("Closed down:", code, reason) def received_message(self, resp): data = json.loads(str(resp)) print(data) if __name__ == '__main__': ws = None count = 0 while True: try: ws = Client('wss://xxxxxxxxx:xxxxxxxxx') ws.connect() ws.run_forever() except KeyboardInterrupt: ws.close() break except Exception as e: continue
Like above of code. when i run the code,after a while,it wont't receive any messages,and it won't TimeoutError,as if the program has frozen.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Like above of code.
when i run the code,after a while,it wont't receive any messages,and it won't TimeoutError,as if the program has frozen.
The text was updated successfully, but these errors were encountered: