Skip to content

dirk/jacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Client-server communications using Ruby and Jabber/XMPP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages