How do I program for Jabber?

titivillus on 2008-12-27T01:58:30

I've got it in my mind that I want to be able to code some Jabber/XMPP stuff. Using Net::XMPP, I was able to get into sending stuff, but not really deal with the presence detection aspects. I looked at Net::XMPP2, but that is marked as depricated in favor of AnyEvent::XMPP. But if AnyEvent::XMPP exists, CPAN hasn't heard of it.

If you're going to program for Jabber with Perl, what modules do you use?


AnyEvent::XMPP is on CPAN

Random Logic on 2008-12-29T10:34:07

I just started to spin my head into AnyEvent and so far it looks very promising. I'm building up classes mostly using Moose so they keep Object-Oriented as much as possible (so hiding complexity from the interface), while still using the super-cow powers of callbacks in event-programming.

AnyEvent::XMPP is on CPAN (by elmex): http://search.cpan.org/user/elmex/AnyEvent-XMPP-0.2/

I haven't used it though. Happy hacking

Re:AnyEvent::XMPP is on CPAN

titivillus on 2008-12-30T19:30:52

jacoby@oz:~/Mount/lab/web$ sudo cpan AnyEvent::XMPP CPAN: Storable loaded ok (v2.18) Going to read /home/jacoby/.cpan/Metadata Database was generated on Sat, 29 Nov 2008 20:28:11 GMT Warning: Cannot install AnyEvent::XMPP, don't know what it is. Try the command

i /AnyEvent::XMPP/

to find objects with matching identifiers. CPAN: Time::HiRes loaded ok (v1.9711) jacoby@oz:~/Mount/lab/web$

I may find documentation on CPAN.org, but unless I can install it via CPAN, it's not on CPAN.

Otherwise, a very helpful comment, and I thank you.

Re:AnyEvent::XMPP is on CPAN

titivillus on 2008-12-30T19:32:47

I shouldn't have trusted it to do preformatted text. Should've put breaks.


jacoby@oz:~/Mount/lab/web$ sudo cpan
AnyEvent::XMPP
CPAN: Storable loaded ok (v2.18)
Going to read /home/jacoby/.cpan/Metadata
Database was generated on Sat, 29 Nov 2008 20:28:11 GMT Warning: Cannot install AnyEvent::XMPP, don't know what it is.
Try the command

i /AnyEvent::XMPP/

to find objects with matching identifiers.
CPAN: Time::HiRes loaded ok (v1.9711)
jacoby@oz:~/Mount/lab/web$

Ah, that's better.

Other options

stu42j on 2008-12-29T16:45:29

There is also a POE module and DJabberd.