Improves comments

This commit is contained in:
Mickael Remond 2019-06-07 16:30:57 +02:00
parent eb2b506e3b
commit 0865f4e35c
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3

View File

@ -26,6 +26,8 @@ func main() {
log.Fatalf("%+v", err) log.Fatalf("%+v", err)
} }
// If you pass the client to a connection manager, it will handle the reconnect policy
// for you automatically.
cm := xmpp.NewClientManager(client, nil) cm := xmpp.NewClientManager(client, nil)
err = cm.Start() err = cm.Start()
// connection can be stopped with cm.Stop() // connection can be stopped with cm.Stop()