Skip to content

Support for Client to Server pings - #22

Open
marijnvriens wants to merge 2 commits into
ralphm:masterfrom
marijnvriens:master
Open

Support for Client to Server pings#22
marijnvriens wants to merge 2 commits into
ralphm:masterfrom
marijnvriens:master

Conversation

@marijnvriens

Copy link
Copy Markdown

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

ralphm commented Feb 27, 2018

Copy link
Copy Markdown
Owner

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