Ruby XMPP library written from the ground up on eventmachine and libxml
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 3 commits ahead, 888 commits behind adhearsion:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
spec
.gitignore
CHANGELOG
LICENSE
README.rdoc
Rakefile

README.rdoc

Blather

An evented XMPP library

Features

  • evented architecture

  • uses libxml

  • simplified starting point

Project Pages

GitHub

github.com/sprsquish/blather

RubyForge

rubyforge.org/projects/squishtech/

Lighthouse

squishtech.lighthouseapp.com/projects/20652-blather

Author

Jeff Smick <sprsquish@gmail.com>

Usage

Installation

sudo gem install blather

Example

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

TODO

  • Cleanup API

** Add lambda callback ability to Iq stanzas

** Re-write XMPP4R examples into Blather

License

Please see LICENSE The LibXML-Ruby license can be found in its directory