It looks like you're new here. If you want to get involved, click one of these buttons!
def on_connect(ws, response):
# Callback on successful connect.
ws.subscribe(token)
ws.set_mode(ws.MODE_FULL, token)
This is throwing me an error: Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
on_connect
method is absolutely fine. AboveConnection error: 1006
, seems to be because of blocking of main thread. You can go python client Websocket FAQs here to know more.Link to discussion: https://kite.trade/forum/discussion/9017/connection-error-1006-connection-was-closed-uncleanly-i-dropped-the-websocket-tcp-connection#latest