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:
parent
780872f2ef
commit
1407f10f7f
2 changed files with 5 additions and 3 deletions
|
@ -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() {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue