Describe ping

[?]
Dec 9, 2020, 6:59 PM
FZBPGF6XQGXWVJDK6QSBIUE4D3ZJVD2P5JJMEEQB3PHIAPV7DUPAC

Dependencies

  • [2] 3RMEABMU Prepare to add HTTP API to ping cutom jids
  • [3] TGO4TIWU Fix README
  • [4] 727YJ2SL Send message and presence to MUC
  • [5] UL67RM6X Re-implement sending message

Change contents

  • replacement in src/xmpp/xmpp_connection.rs at line 114
    [3.2898][3.2898:2922]()
    struct PingIqHandler {}
    [3.2898]
    [3.2922]
    struct PingIqHandler {
    ignorable: bool,
    }
  • replacement in src/xmpp/xmpp_connection.rs at line 133
    [3.3304][3.3304:3318]()
    false
    [3.3304]
    [3.3318]
    self.ignorable
  • replacement in src/xmpp/xmpp_connection.rs at line 137
    [3.3395][3.3395:3409]()
    false
    [3.3395]
    [3.3409]
    self.ignorable
  • edit in src/xmpp/xmpp_connection.rs at line 880
    [2.249]
    [3.29180]
    let ignorable = opt_xmpp_to.is_some();
  • replacement in src/xmpp/xmpp_connection.rs at line 895
    [3.29727][3.29727:29800]()
    .insert(id_ping, IqWait::new(30, PingIqHandler {}));
    [3.29727]
    [3.29800]
    .insert(id_ping, IqWait::new(30, PingIqHandler { ignorable }));
  • edit in README.md at line 31
    [3.56475]
    [3.56475]
    Sends ping to any JID.
  • edit in README.md at line 46
    [3.56673]
    [3.56673]
    ```
    ### Sending pings
    ```
    curl http://localhost:8083/ping -H "X-XMPP-To: some@domain.org"