Getting Error in websocket_client.py file

Hi Upstox Team,

I am getting this error

“BaseEventLoop.create_connection() got an unexpected keyword argument ‘extra_headers’”

Using websocket version - 14.1

tried to update with “additional_header” still same error shows.

Can you suggest what I need to add or I need to use the lower version

Hi @narveersingh26,

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:

pip install <library_name>==<version> --force-reinstall

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.

Thank you!