An evented XMPP library
-
evented architecture
-
uses libxml
-
simplified starting point
- GitHub
- RubyForge
- Lighthouse
Jeff Smick <sprsquish@gmail.com>
sudo gem install blather
See the /examples directory for more advanced examples.
This will auto-accept any subscription requests and echo back any chat messages.
%w[rubygems blather/client].each { |r| require r } setup 'echo@jabber.local', 'echo' # Auto approve subscription requests handle :subscription do |s| write(s.approve!) if s.request? end # Echo back what was said handle :message do |m| write(m.reply) if m.chat? && m.body end
-
Cleanup API
** Add lambda callback ability to Iq stanzas
-
Better Documentation
-
Service Discovery (XEP-0030: xmpp.org/extensions/xep-0030.html)
-
PubSub (XEP-0060: xmpp.org/extensions/xep-0060.html)
-
More examples
** Re-write XMPP4R examples into Blather
Please see LICENSE The LibXML-Ruby license can be found in its directory