go-xmpp/xmpp_discovery.go
2016-05-06 18:45:22 -04:00

13 lines
289 B
Go

package xmpp
import (
"fmt"
)
const xmlIqGet = "<iq from='%s' to='%s' id='%d' type='get'><query xmlns='http://jabber.org/protocol/disco#items'/></iq>"
func (c *Client) Discovery() {
cookie := getCookie()
fmt.Fprintf(c.conn, xmlIqGet, xmlEscape(c.jid), xmlEscape(c.domain), cookie)
}