Example #1
0
        public void TestSendManyMessages()
        {
            Presence presence = new Presence(ShowType.Show);

            JabberID from    = new JabberID(myJid);
            JabberID to      = new JabberID(partnerJid);
            string   msg     = "Hello";
            Message  message = new Message(from, to, msg);

            XmppClientConnection connection = new XmppClientConnection(
                new JabberID(myJid), password);

            connection.Login();
            connection.Send(presence);

            for (int i = 0; i < 500; i++)
            {
                Assert.DoesNotThrow(() => { connection.Send(new Message(from, to, i.ToString())); });
                Thread.Sleep(100);
            }
        }