Unable getting LTP date & server rejected websocket connection HTTP 400

i am unable to download option LTP data against option as per readymade websocket code available in made for trade

error is as below
watchlist changed. reconnecting the feed…
disconnected from websocket feed
websocket connection error: sever rejected websocket connection: HTTP 400
reconnecting Again. . .

requesting please share full code details

Hi @Narayan_p ,

Welcome to madefortrade,

It seems you are trying to connect to the WebSocket using the older V1 version. We request you to connect using the latest WebSocket V2. For reference, please check here - Live Market Feed - DhanHQ Ver 2.0 / API Document