Add support for SASL2 and BIND2 (#187)

* Add basic support for SASL2 (XEP-0388) and Bind2 (XEP-0386).
This commit is contained in:
Martin
2024-04-09 10:53:38 +02:00
committed by GitHub
parent da2377ecb0
commit 7486b7a363
2 changed files with 205 additions and 53 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const (
)
func (c *Client) Discovery() (string, error) {
// use getCookie for a pseudo random id.
// use UUIDv4 for a pseudo random id.
reqID := strconv.FormatUint(uint64(getCookie()), 10)
return c.RawInformationQuery(c.jid, c.domain, reqID, IQTypeGet, XMPPNS_DISCO_ITEMS, "")
}