diff --git a/documentation/overview.html b/documentation/overview.html index 4affaee85..01ae354bf 100644 --- a/documentation/overview.html +++ b/documentation/overview.html @@ -25,17 +25,24 @@ Smack Key Advantages
XMPPConnection connection = new XMPPConnection("jabber.org"); +connection.connect(); connection.login("mtucker", "password"); -connection.createChat("jsmith@jivesoftware.com").sendMessage("Howdy!"); +Chat chat = connection.getChatManager().createChat("jsmith@jivesoftware.com", new MessageListener() { + + public void processMessage(Chat chat, Message message) { + System.out.println("Received message: " + message); + } +}); +chat.sendMessage("Howdy!");