1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Merge pull request #271 from beedle-/master

Fix example for Establishing a Connection
This commit is contained in:
Florian Schmaus 2018-10-02 20:52:21 +02:00 committed by GitHub
commit e4aacf3e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ server. Below are code examples for making a connection:
``` ```
// Create a connection and login to the example.org XMPP service. // Create a connection and login to the example.org XMPP service.
AbstractXMPPConnection connection = new XMPPTCPConnection("username", "password", "example.org"); AbstractXMPPConnection conn1 = new XMPPTCPConnection("username", "password", "example.org");
conn1.connect().login(); conn1.connect().login();
``` ```