Skip to content

XMPP Remote Setup Guide

Danger

The socket does not have any datatypes built in, it returns raw XML data from the socket

Step 1: Initialize Auth Records

To use XMPP you must use the RSOAuth record type You may also use the built in login methods to provide RSOAuth

Note: Initiator can be constructed in many different ways please read the How To Documentation

Step 2: Connect to XMPP Server

This will begin the actual socket connection using provided RSOAuth.

C#
1
2
3
4
5
6
RemoteXMPP xmpp = new();
xmpp.OnMessage += data => Console.WriteLine($"[Message] {data}");
xmpp.OnXMPPProgress += status => Console.WriteLine($"[XMPP] XMPPStatus.{status}");
xmpp.OnXMPPProgress += status => Debug.WriteLine($"[XMPP] XMPPStatus.{status}");

await xmpp.InitiateRemoteXMPP(rsoAuthData);

Step 3: Send Messages to XMPP

How to send messages to XMPP Client.

C#
1
await xmpp.SendMessage("<iq type=\"get\" id=\"2\"><query xmlns=\"jabber:iq:riotgames:roster\" last_state=\"true\" /></iq>");