wokkel
wokkel copied to clipboard
Support for Client to Server pings
XEP-0199 describes client to server pings. In this pull request client support for these types of pings is added.
Additionally the ping() method now has an optional timeout parameter. Pings that have not been responded in timeout time will call the errback on the deferred.
REF: https://xmpp.org/extensions/xep-0199.html#c2s
This looks good. but the added timeout
parameter is not tested.
I think eventually this should work with the Request
class instead of the IQ
one, but not in this change.