Subject: Simple client application to work with 0.26
Hi,
It took me a while to get a working signin, so posting my code here...
It took me a while to get a working signin, so posting my code here...
Console.WriteLine("jabber.org server...");
XmppClientConnection xmpp = new XmppClientConnection("jabber.org");
xmpp.UseSSL = true;
xmpp.Port = 5223; // SSL port = 5223
xmpp.Open("testaccount001", "password001");
Console.WriteLine("After Open...");
System.Threading.Thread.Sleep(8000);
xmpp.Status = "Online";
// showtype.online not in library? Seems to be default if you don't set.
xmpp.Show = agsXMPP.protocol.ShowType.chat;
xmpp.SendMyPresence();
Console.WriteLine("After Presence...");
System.Threading.Thread.Sleep(5000);
xmpp.Send( new agsXMPP.protocol.Message("roundsparrow@jabber.org", MessageType.chat, "agsXMPP - Hello, how are you?"));
XmppClientConnection xmpp = new XmppClientConnection("jabber.org");
xmpp.UseSSL = true;
xmpp.Port = 5223; // SSL port = 5223
xmpp.Open("testaccount001", "password001");
Console.WriteLine("After Open...");
System.Threading.Thread.Sleep(8000);
xmpp.Status = "Online";
// showtype.online not in library? Seems to be default if you don't set.
xmpp.Show = agsXMPP.protocol.ShowType.chat;
xmpp.SendMyPresence();
Console.WriteLine("After Presence...");
System.Threading.Thread.Sleep(5000);
xmpp.Send( new agsXMPP.protocol.Message("roundsparrow@jabber.org", MessageType.chat, "agsXMPP - Hello, how are you?"));