mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Update README.md's ChatManager example to new API
This commit is contained in:
parent
afa4ce5773
commit
c86d6e3b61
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ Key Advantages :
|
||||||
XMPPConnection connection = new TCPConnection("jabber.org");
|
XMPPConnection connection = new TCPConnection("jabber.org");
|
||||||
connection.connect();
|
connection.connect();
|
||||||
connection.login("mtucker", "password");
|
connection.login("mtucker", "password");
|
||||||
Chat chat = connection.getChatManager()
|
Chat chat = ChatManager.getInstanceFor(connection)
|
||||||
.createChat("jsmith@jivesoftware.com", new MessageListener() {
|
.createChat("jsmith@jivesoftware.com", new MessageListener() {
|
||||||
|
|
||||||
public void processMessage(Chat chat, Message message) {
|
public void processMessage(Chat chat, Message message) {
|
||||||
|
|
Loading…
Reference in a new issue