From 5844bee1c38b38eb7c55fa3e67e8499d519ae84a Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 25 Mar 2021 12:23:39 +0100 Subject: [PATCH] [javadoc-overview] Disconnect the connection in example code --- resources/javadoc-overview.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/javadoc-overview.html b/resources/javadoc-overview.html index 79e4c8ce4..4f63c64a8 100644 --- a/resources/javadoc-overview.html +++ b/resources/javadoc-overview.html @@ -21,6 +21,8 @@ Message message = connection.getStanzaFactory() .build(); connection.sendStanza(message); + +connection.disconnect();

Smack doesn't force you to code at the protcol level of XMPP. The library provides intelligent higher level constructs, often called {@link org.jivesoftware.smack.Manager}, which let you program more efficiently. Other examples of those constructs are the Chat and Roster classes.