Skip to content
Javier edited this page Aug 19, 2014 · 2 revisions

Xmpp Wrapper

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.

Usage example

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();
        }
    }
}
Clone this wiki locally