diff options
Diffstat (limited to 'vendor/github.com/mattn/go-xmpp/xmpp_ping.go')
-rw-r--r-- | vendor/github.com/mattn/go-xmpp/xmpp_ping.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/mattn/go-xmpp/xmpp_ping.go b/vendor/github.com/mattn/go-xmpp/xmpp_ping.go index 26d056e9..39269d80 100644 --- a/vendor/github.com/mattn/go-xmpp/xmpp_ping.go +++ b/vendor/github.com/mattn/go-xmpp/xmpp_ping.go @@ -25,3 +25,9 @@ func (c *Client) PingS2S(fromServer, toServer string) error { xmlEscape(fromServer), xmlEscape(toServer)) return err } + +func (c *Client) SendResultPing(id, toServer string) error { + _, err := fmt.Fprintf(c.conn, "<iq type='result' to='%s' id='%s'/>", + xmlEscape(toServer), xmlEscape(id)) + return err +} |