Please help to share procedure to close web-socket. Idea is to introduce auto-close on kite connect post-market hour.
I found following methods, but not working. ========================================================================== # Assign the callbacks. kws.on_ticks = on_ticks kws.on_connect = on_connect kws.on_close = on_close
def on_close(ws, code, reason): # On connection close stop the main loop # Reconnection will not happen after executing `ws.stop()` ws.stop()