I am facing this error only on some days and other days I don't face error with same code. Connection error: 1006 - connection was closed uncleanly (WebSocket closing handshake timeout (peer did not finish the opening handshake in time))
Below is the code, can you please help me to fix this error which is causing intermittently ?
def on_ticks(ws, ticks): ltp_store.update({str(tick['instrument_token']): tick['last_price'] for tick in ticks}) # ws.unsubscribe(ticks)
Can you please help on this ?