go-xmpp/xmpp_discovery.go

13 lines
289 B
Go
Raw Normal View History

2016-03-31 13:57:38 -07:00
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)
}