diff --git a/README.md b/README.md index 2996b2c9e..2d4959e33 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Key Advantages : - Extremely simple to use, yet powerful API. Sending a text message to a user can be accomplished in only a few lines of code: ```java - XMPPConnection connection = new XMPPTCPConnection("jabber.org"); + AbstractXMPPConnection connection = new XMPPTCPConnection("jabber.org"); connection.connect(); connection.login("mtucker", "password"); Chat chat = ChatManager.getInstanceFor(connection) diff --git a/documentation/connections.html b/documentation/connections.html index 081e70f1a..a5f694c4f 100644 --- a/documentation/connections.html +++ b/documentation/connections.html @@ -20,8 +20,8 @@

The org.jivesoftware.smack.XMPPConnection class manages your connection to an XMPP - server. The default implementation is the org.jivesoftware.smack.XMPPConnection - class. Two constructors are mainly used. The first, XMPPConnection(String) takes + server. A default implementation is the org.jivesoftware.smack.XMPPTCPConnection + class. Two constructors are mainly used. The first, XMPPTCPConnection(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 + Alternatively, you can use the XMPPTCPConnection(ConnectionConfiguration) constructor to specify advanced connection settings. Some of these settings include: