Not logged in. · Lost password · Register
Forum: MatriX RSS
cvoluter #1
Member since Jan 2015 · 14 posts
Group memberships: Members
Show profile · Link to this post
Subject: Sending Raw stream
I search for testing to develop a small application that able to send stream directly from textbox. Is there a method to directly send a text stream from the session xmpp as we do with a message ?

Alex #2
Member since Feb 2003 · 4330 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Anything you send must be valid Xml. When you want to send Xml From a textbox then just use this code snippet:

  1. var xmlString = txtText.Text;
  2. var xmlElement = XmppXElement.LoadXml(xmlString);
  3. xmppCLient.Send(xmlElement);

Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS