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.
For APIs, you need to handle local disconnection at your end using exception/time-out handling. 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.