An open API service indexing awesome lists of open source software.

https://github.com/dirk/jacs

Client-server communications using Ruby and Jabber/XMPP.
https://github.com/dirk/jacs

Last synced: 1 day ago
JSON representation

Client-server communications using Ruby and Jabber/XMPP.

Awesome Lists containing this project

README

          

= 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

Copyright (c) 2010 Dirk Gadsden. See LICENSE for details.