GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A rails app that interfaces with xmpp4r-simple
Clone URL: git://github.com/knewter/jabber_client.git
jabber_client / README
100644 36 lines (24 sloc) 1.217 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
== Jabber Client
 
This is a rails app that operates as a Jabber client using
Jabber::Simple and will message asynchronously back to the
browser. It should ultimately evolve into a full featured
AJAX Jabber client built in Rails.
 
It uses Juggernaut for messaging back to the browser.
 
== To install it
 
1) cp config/jabber_client_test_login.rb.template config/jabber_client_test_login.rb
2) modify it so it has the client info that will be used to receive messages and presence updates.
3) signup for a user.
4) fill out your jabber login/password (this will be used to send messages).
 
I'm aware that the above is quirky and unsuitable for any real usage, but it's a nice start.
 
== To test it
 
1) Launch the juggernaut server with:
     juggernaut -c config/juggernaut.yml
 
2) Launch the jabber connection proxy:
     cd RAILS_ROOT/lib
     ruby jabber_connection_server_daemon.rb
 
3) Launch the rails server
 
4) visit /buddy_list (you'll need a user with a jabber user, and you have to be logged in)
 
5) open up a script/console session and type:
     g = JabberUpdater.new
     g.handle_presence_updates
     FIXME: Right now you might need to run these lines, ^C to get out, and run them again for it to work.