1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-09 10:19:41 +02:00

Make connect() return a self-reference

This commit is contained in:
Florian Schmaus 2015-01-25 19:48:52 +01:00
parent 780872f2ef
commit 1407f10f7f
2 changed files with 5 additions and 3 deletions

View file

@ -13,8 +13,8 @@ Smack Key Advantages
```java
AbstractXMPPConnection connection = new XMPPTCPConnection("mtucker", "password", "jabber.org");
connection.connect();
connection.login();
connection.connect().login();
Chat chat = ChatManager.getInstanceFor(connection)
.createChat("jsmith@jivesoftware.com", new MessageListener() {