jacs

What is it?

A super-simple way to establish a client-server system using Jabber/XMPP. The protocol is heavily inspired by HTTP. (It even uses HTTP path formatting and status codes!)

Installation

gem install jacs

Example

Server code would look like:

require ‘rubygems’ require ‘jacs’ class JabberServer < ActionJabber::Base route ‘/users’ do return [‘John Smith’, ‘Jane Doe’] end end server = ActionJabber::Server.new(‘username@host’, ‘password’, JabberServer) server.run!

Client code would look like:

require ‘rubygems’ require ‘jacs’ class JabberClient < ActiveJabber::Base; end client = JabberClient.new(‘username@host’, ‘password’) users = client.users!

Copyright © 2010 Dirk Gadsden. See LICENSE for details.