r2 - 13 Jun 2008 - 00:10:12 - HecPeAreYou are here: TWiki >  Rails Web > Jabber
http://trypticon.org/software/actionmessenger/

http://www.ruby-forum.com/search?query=jabber&submit=Search

http://home.gna.org/xmpp4r/

-- HecPeAre - 11 Dec 2007

http://rubyforge.org/projects/ruburple/

-- HecPeAre - 11 Dec 2007

http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/

sudo aptitude install install libxmpp4r-ruby

irb

require 'xmpp4r/client'

include Jabber

  1. client = Client.new(JID::new("somejabberaccount@somewhere.com"))
  2. client.connect
  3. client.auth("my_extremely_secret_password")
  4. client.send(Presence.new.set_type(:available))

  1. msg = Message::new("john@somejabberserver.com", "Hello… John?")
  2. msg.type=:chat
  3. client.send(msg)

-- HecPeAre - 12 Jun 2008

  1. msg = Message::new("john@somejabberserver.com", "Hello… John?")
  2. msg.type=:chat
  3. client.send(msg)

  1. pres = Presence.new.set_type(:subscribe).set_to("john@someserver.com")
  2. client.send(pres)

-- HecPeAre - 12 Jun 2008

http://github.com/ln/xmpp4r/tree/master/data/doc/xmpp4r/examples

-- HecPeAre - 13 Jun 2008

 
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki

This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback