I have a jabber client that is reading from its stdin and posting PubSub messages.If I get EOF on stdin, I want to terminate the client.
I use the twisted.words.protocols.jabber.client.XMPPClientFactory . Do you know how I can callback a function whe开发者_运维百科n the connection gets lost (for example WiFi-connection is down)?
I was surprised that XML basic object (twisted.words.xish.domish.Element) could not be created entirely from XML string. The most alike way is: