Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Client to Server pings #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marijnvriens
Copy link

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

@ralphm
Copy link
Owner

ralphm commented Feb 27, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants