mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-19 10:32:05 +01:00
[javadoc-overview] Disconnect the connection in example code
This commit is contained in:
parent
a39d44ed1f
commit
5844bee1c3
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ Message message = connection.getStanzaFactory()
|
|||
.build();
|
||||
|
||||
connection.sendStanza(message);
|
||||
|
||||
connection.disconnect();
|
||||
</pre>
|
||||
|
||||
<p>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.</p>
|
||||
|
|
Loading…
Reference in a new issue