mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-23 20:33:46 -07:00
implement discovery extension
This commit is contained in:
committed by
James Lawrence
parent
12d5633a9d
commit
bacbdeb205
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user