I may be wrong but I think there is an error in one of code examples in the current javadoc (ver 1.0 beta2):
- On Chat class page, you have an example showing a possible way to connect and send to a user (part of which is featured below:
Chat chat = new Chat("email@example.com");
chat.sendMessage(“Hey, how’'s it going?”);
But you can’'t actually create a chat object out of just a JID…you also need to pass a XMPPConnection string at least.
Has anyone made any example applications using the Smack libs yet? If so, it would be nice to have a thread or area of the site highlighting open source projects using these libs…
…Which leads on to my final question/point - are there any pointers fellow developers would like to give to someone who has java experience but never coded an IM client (any pitfalls to watch out for?).