Exemple #1
0
        public void Bind(string resource)
        {
            var packet = new Packet("resource")
            {
                Value = resource
            };

            var binder = new Packet("bind", "urn:ietf:params:xml:ns:xmpp-bind");

            binder.AddChild(packet);

            var iq = new IQ(IQType.Set);

            iq.AddChild(binder);

            Register(iq);
            Stream.Send(iq);
        }