websocket error

intermeditatealgo
error:Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)
code:
kws = KiteTicker(api_key, access_token)
get_token()

def on_ticks(ws, ticks):
print(ticks)

def on_connect(ws, response):
ws.subscribe(token_list)
ws.set_mode(ws.MODE_FULL,token_list)

def on_close(ws, code, reason):
# On connection close stop the main loop
# Reconnection will not happen after executing `ws.stop()`
ws.stop()


kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.on_close = on_close

kws.connect(threaded=True)

This discussion has been closed.