twisted.words.protocols.jabber.xmlstream.upgradeWithIQResponseTracker(xs)
function documentationtwisted.words.protocols.jabber.xmlstream
View Source
Enhances an XmlStream for iq response tracking.
This makes an XmlStream
object provide IIQResponseTracker
. When a response is an error iq stanza, the deferred has its errback invoked with a failure that holds a StanzaError
that is easier to examine.
Function | callback | Handle iq response by firing associated deferred. |
Function | disconnected | Make sure deferreds do not linger on after disconnect. |
Make sure deferreds do not linger on after disconnect.
This errbacks all deferreds of iq's for which no response has been received with a ConnectionLost
failure. Otherwise, the deferreds will never be fired.