callbacks for handling disconnection

bhavyanarang2015
how can I handle network disconnection in kiteconnect zerodha?
is there any way where you handle it youself if there is disconnection from host?


how can I use this function??
def set_session_expiry_hook(self, method)
  • rakeshr
    For WebSocket connection, auto-reconnect is set by default using reconnect=True.
    For APIs, you need to handle local disconnection at your end using exception/time-out handling.
    how can I use this function??
    def set_session_expiry_hook(self, method)
    Yes, you can use this method but you need to define a callback method inside the same, that handles such timeouts/exceptions. Go through the documentation here.
Sign In or Register to comment.