Skip to content

ericallam/blather

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ruby XMPP library written from the ground up on eventmachine and libxml

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%