add a ping plugin

This is a demo of the simplest iq-based protocol.  When an iq is
received containing a payload qualified by this namespace, an empty
result iq is sent.
This commit is contained in:
Emmanuel Gil Peyrot 2017-03-31 16:25:52 +01:00
commit 40d01a729f
4 changed files with 73 additions and 0 deletions

View file

@ -6,3 +6,4 @@ pub const TLS: &'static str = "urn:ietf:params:xml:ns:xmpp-tls";
pub const SASL: &'static str = "urn:ietf:params:xml:ns:xmpp-sasl";
pub const BIND: &'static str = "urn:ietf:params:xml:ns:xmpp-bind";
pub const STANZAS: &'static str = "urn:ietf:params:xml:ns:xmpp-stanzas";
pub const PING: &'static str = "urn:xmpp:ping";