Error Using the dhan Websocket while fetching the live market feeds

While I connect through the dhan websocket, Most of the time* I face the issue of websocket getting closed by itself with message “WebSocket closed with code 1006:
WebSocket closed with status 1006:” , how to deal with this problem.