diff --git a/cmd/xmpp_echo/xmpp_echo.go b/cmd/xmpp_echo/xmpp_echo.go index fed97c3..94fc087 100644 --- a/cmd/xmpp_echo/xmpp_echo.go +++ b/cmd/xmpp_echo/xmpp_echo.go @@ -26,6 +26,8 @@ func main() { 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) err = cm.Start() // connection can be stopped with cm.Stop()