I am looking for end to end good practice Websocket code/examples, I can handle routine tasks (connect, register, place order, register order, upon complete close the connection) but facing challenges (connection related activities) while developing robust framework such as restore connection with same state upon onReconnect, handling if force abort from zerodha side, etc).
Official document is good but having definition & syntax but I'm looking for one level down, end to end good practice code. I spent 3 days to build complete framework but could not, failing upon reconnect (not able to bring back to exact state). Most of the blogs & videos has part of it but not full. Could you suggest some good resource/code.