1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

Update README.md's ChatManager example to new API

This commit is contained in:
Florian Schmaus 2014-04-08 18:26:14 +02:00
parent afa4ce5773
commit c86d6e3b61

View file

@ -17,7 +17,7 @@ Key Advantages :
XMPPConnection connection = new TCPConnection("jabber.org");
connection.connect();
connection.login("mtucker", "password");
Chat chat = connection.getChatManager()
Chat chat = ChatManager.getInstanceFor(connection)
.createChat("jsmith@jivesoftware.com", new MessageListener() {
public void processMessage(Chat chat, Message message) {