Refactor ClientManager into a more generic StreamManager

This commit is contained in:
Mickael Remond
2019-06-08 18:09:22 +02:00
committed by Mickaël Rémond
parent 54dfa60f12
commit 021f6d3740
5 changed files with 49 additions and 27 deletions

View File

@@ -28,7 +28,7 @@ func main() {
// 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.NewStreamManager(client, nil)
err = cm.Start()
if err != nil {
log.Fatal(err)