Closed itayl2 closed 2 months ago
You don't need the second while True loop. You can put that whole try-except block under if __name__ == '__main__'
and run it like that.
Because run_until_complete is a method that runs the event loop until a Future is done and returns the Future's result or raises its exception, you don't need to add a while True loop. Please refer to this and modify your code accordingly.
Hi,
I love this package, thank you so much.
I am running into two issues with the websocket connection. This is my code:
When I use the code above, I run into this error every short while:
When I change the sleep to
30
, I get this every short while:Any idea how this can be solved?