zerodha / pykiteconnect

The official Python client library for the Kite Connect trading APIs
MIT License
996 stars 473 forks source link

Gracefully exit websocket for exceeding reconnect_max_tries attempts #150

Closed ranjanrak closed 1 year ago

ranjanrak commented 2 years ago

Should we exit the websocket in case reconnect_max_tries attempts are exceeded? As once reconnect_max_tries attempts are exhausted, no further reconnection attempts are made. So, instead of keeping the websocket connection hanging at the user end(with no further reconnects), maybe we can terminate the same as we do for go and node.js clients websocket. Ws changes for the same are mentioned in this PR.

ranjanrak commented 1 year ago

The above PR is merged.