implement discovery extension

This commit is contained in:
James Lawrence
2016-03-31 16:57:38 -04:00
committed by James Lawrence
parent 12d5633a9d
commit bacbdeb205
2 changed files with 14 additions and 1 deletions

View File

@@ -417,7 +417,7 @@ func (c *Client) init(o *Options) error {
return err
}
// Generate a uniqe cookie
// Generate a unique cookie
cookie := getCookie()
// Send IQ message asking to bind to the local user name.
@@ -434,6 +434,7 @@ func (c *Client) init(o *Options) error {
return errors.New("<iq> result missing <bind>")
}
c.jid = iq.Bind.Jid // our local id
c.domain = domain
if o.Session {
//if server support session, open it