I use the twisted.words.protocols.jabber.client.XMPPClientFactory . Do you know how I can callback a function when the connection gets lost (for example WiFi-connection is down)?
thank you for your help!
I use the twisted.words.protocols.jabber.client.XMPPClientFactory . Do you know how I can callback a function when the connection gets lost (for example WiFi-connection is down)?
thank you for your help!
Copyright © 2021 Jogjafile Inc.
You can either add a bootstrap for xmlstream.STREAM_END_EVENT or set a defer to clientConnectionLost.
bootstrap method
or
defer method