New websocket in Firstock 4.1 giving error

Hi, I am running this code:

from thefirstock import thefirstock
handler = thefirstock.WebSocketHandler(“USER_NAME”)
listOfTradingSymbol = [“Nifty Bank”, “Nifty 50”]
def subscribe_feed_data(data):
thefirstock.subscribe_symbol(handler, “ACC-EQ”)
print(data)

thread = thefirstock.websocket_connection(
handler,
listOfTradingSymbol,
socket_connection=1,
activate_sub_feed=True,
callback_sub_feed=subscribe_feed_data
)

I am getting error: ERROR:thefirstock.exchange_socket:Failed to connect and receive feed: Lock.init() got an unexpected keyword argument ‘loop’
Failed to connect and receive feed: Lock.init() got an unexpected keyword argument ‘loop’

I think this is error on your end. Is the new websocket code not working? If yes, please allow for an urgent fix.

Hi @Ashish_Gupta,

Our team is already on it, diligently working to resolve the problem with the WebSocket code. Thank you for your understanding and patience as we work to make things right.