It seems you’re using something similar to this example. The websocket library in Python is an external dependency, and you can downgrade it to any desired version using the following command:
I recommend switching to the WebSocket streamer functions available in the SDK for better usability. These functions are regularly updated with new features and functionalities to enhance your experience.