Receiving ticks, but kws.is_connected() results in False

Rekha
I am receiving the ticks regularly. yet, when I try to put an if condition to check kws.is_connected() it fails. why so?
kws = KiteTicker(api_key, access_token, reconnect=True, reconnect_max_tries=100, reconnect_max_delay=30,
connect_timeout=125)
kws.on_ticks = on_ticks
kws.on_connect = on_connect
kws.on_close = on_close
kws.on_error = on_error
kws.on_message = on_message
kws.on_noreconnect = on_noreconnect
kws.connect(disable_ssl_verification=True, threaded=True)
Sign In or Register to comment.