twisted jabber and xmlstream

  • Thread starter Operation Latte Thunder
  • Start date
O

Operation Latte Thunder

I am playing around with Jabber with Twisted. I can receive messages just
fine, and thats great, however, I am a bit confused about how to actually
_send_ messages. From what I've seen, I need to call send() on the
xmlstream I get when I am auth'd... and thats where I get stuck. Do I
need to create the jabber message documents myself, or are there factory
methods that create message, presence, iq, etc messages for me.

Better yet, does anybody have an example on the web somewhere?

/goes back to staring at the XmlStream API doc...

TIA
 
S

Sylvain Thenault

I am playing around with Jabber with Twisted. I can receive messages just
fine, and thats great, however, I am a bit confused about how to actually
_send_ messages. From what I've seen, I need to call send() on the
xmlstream I get when I am auth'd... and thats where I get stuck. Do I
need to create the jabber message documents myself, or are there factory
methods that create message, presence, iq, etc messages for me.

you have to create jabber elements by yourself, using the
twisted.xish.domish package.
Better yet, does anybody have an example on the web somewhere?

you can find some examples in our fatima project, a jabber bot testing
client, available at http://www.logilab.org/projects/fatima/0.1
You'll find a jabber.py module in the distribution containing jabber
related code.

hope that helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top