-
Notifications
You must be signed in to change notification settings - Fork 13
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
XEP-0199: XMPP Ping #80
Comments
See also: http://stackoverflow.com/questions/23863703/how-to-send-ping-packets-using-jabber-net-library — Joe himself have answered a similar question. |
Thank you for the references. I know only the basics of the XMPP protocol, I'm trying to learn it. How can I use the PingQuery class of the stackoverflow answer to send a ping to the server and then receiving it? I googled it without any success. |
Sorry, it's been long since I last used IQ sending, but I'll try to help. Look: I believe that the main usage pattern looks like that: client.Tracker.BeginIQ(new PingIQ(client.Document), (sender, iq, data) => {
/* handle ping response */
}, null); You could call it periodically and reconnect if the answer from the server wasn't received for some timeout. On how to construct |
Add support for XEP-0199: XMPP Ping. If the server couldn't answer ping for some specified amount of time, disconnect from the server and ensure client gets notified.
The text was updated successfully, but these errors were encountered: