3RMEABMUIPT6DGE6RU6NI7LJ62AUQYKIVU4SA4ZL2P3L4CSGIKEAC
TGO4TIWURN54UFBLMUX4EZTZBG3TE5F4VRL56BTLOINCKJEUDD7QC
/// Send ping request to the server to test connection Ping,
/// Send ping request to the server to test connection
Ping,
/// Send ping request. By default to the server to test connection. Ping { opt_xmpp_to: Option<xmpp_parsers::Jid>, },
/// Send ping request. By default to the server to test connection.
Ping {
opt_xmpp_to: Option<xmpp_parsers::Jid>,
},
if (self.xmpp_processing(&event)) {
if self.xmpp_processing(&event) {
XmppCommand::Ping => {
XmppCommand::Ping { opt_xmpp_to } => {
opt_xmpp_to,
pub fn make_ping(id: &str, from: xmpp_parsers::Jid) -> Element {
pub fn make_ping(id: &str, from: xmpp_parsers::Jid, to: Option<xmpp_parsers::Jid>) -> Element {
.with_to(Jid::Bare(BareJid::domain(from.clone().domain())))
.with_to(to.unwrap_or_else(|| Jid::Bare(BareJid::domain(from.clone().domain()))))
cmd_send.clone().send(XmppCommand::Ping).await;
cmd_send .clone() .send(XmppCommand::Ping { opt_xmpp_to: None }) .await;
cmd_send
.clone()
.send(XmppCommand::Ping { opt_xmpp_to: None })
.await;