Smack: Connection Management

Creating a Connection

The org.jivesoftware.smack.XMPPConnection class manages your connection to an XMPP server. Two constructors are available. The first, XMPPConnection(String) takes the server name you'd like to connect to as an argument. All default connection settings will be used:

Alternatively, you can use the XMPPServer(ConnectionConfiguration) constructor to specify advanced connection settings. Some of these settings include:

Connect and Disconnect