It looks like you're new here. If you want to get involved, click one of these buttons!
def on_noreconnect(ws):
kws.close()
kite.connect(threaded=true)
kite.connect(threaded=true)
kws.on_noreconnect = on_noreconnect
i = get curr time in 'hi' format
while i<1530:
if lastTickTm >0 and time.time()-lastTickTm>10 and kws.is_connected()==false
print ('restarting ticker')
kws.close()
kite.connect(threaded=true)
lastTickTm = time.time()
i = get curr time in 'hi' format
kite
in above code. You can refer to this code for threaded example.my ticks work fine. when they work, lol, z-feeds are super unstable . Yesterday it was Jio doesn't support cloudfare dns. there always seems to be some issue. i can't step away from the computer without the computer warning me of the feed disruption. So much so i actually started to look at leases lines and direct connect to NSE, but they are out of my budget. sigh.
kws = KiteTicker(key, at)
it's there. My problem is on
reconnection
mytick
count is very high. at first i thought they are messages that were in transit that were coming in delayed. but that's not the case.since i am starting
connect
inthreaded
mode does that mean i need to call its process id to restart?i use python only for websocket, my knowledge of python is really limited.
thanks for you help.