-
Notifications
You must be signed in to change notification settings - Fork 14
xmpp
Javier edited this page Aug 19, 2014
·
2 revisions
A simple xmpp wrapper for connecting to Riot's chat servers. This wrapper uses Smack's XMPPTCPConnection so you will be able to do everything you could do with it but on top of that you won't have to take care of creating packages for sending messages, encoding room names etc.
public class XmppExample {
public static void main(String[] args) {
XmppClient client = new XmppClient(Shard.EUW, "user", "password");
try {
client.connect();
client.joinChannel("coolchannel", ChatType.PUBLIC, null);
client.sendToChannel("coolchannel", "Hello world!");
} catch (Exception e) {
e.printStackTrace();
}
}
}