Today, 29-Aug-2025, I kept getting Connection error: 1006 for the KiteTicker websocket and it did not work at all. I am using the Python v3 client. What I noticed was that there were 2 IPs listed in the 2 different on_connect responses: abc.def.ghi.jkl & mno.pqr.stu.vwx (redacted for privacy). In between the 2 connection attempts (I assume the 2nd attempt is an automated retry), I make 2 websocket subscribe calls (mode LTP) to get price ticks for 2 Nifty options, but only 1 option is listed in the 2 connection error messages. I assume the second subscribe fails when the first one errors out. Please help resolve this issue.
--subscribe to NFO:NIFTY2590424500CE using its instrument token here-- Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: 'NFO:NIFTY2590424500CE') Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: 'NFO:NIFTY2590424500CE')
This error was caused because I was trying to use Thursday option expiries instead of the changed Tuesday expiry. The issue is resolved.
Reference to the change: https://nsearchives.nseindia.com/content/circulars/FAOP68685.pdf