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.
- Host: GitHub
- URL: https://github.com/dirk/jacs
- Owner: dirk
- License: mit
- Created: 2010-05-15T12:53:28.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-06-02T13:07:26.000Z (about 16 years ago)
- Last Synced: 2025-08-10T04:07:30.357Z (10 months ago)
- Language: Ruby
- Homepage: http://esherido.com/
- Size: 97.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
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.