Websocket reconnect - Max 5 attempts. Can attempts be increased?

Hello Pankaj ,

Before 20 mins the fyers websocket went down automatically. It is lite mode with reconnect true. It tried 5 attempts ONLY to reconnect. Can we increase the number of attempts to reconnect? How? If yes, is there any limit for it?

wfyers = data_ws.FyersDataSocket(
access_token=access_token_new,
log_path=os.getcwd(),
litemode=True,
write_to_file=False,
reconnect=True,
on_connect=onopen,
on_close=onclose,
on_error=onerror,
on_message=onmessage
)

3 replies