Xmpp4r and openfire 3.7

I cannot get this piece of code to work with my openfire 3.7.0 xmpp
server.

#!/usr/bin/env ruby
$:.unshift "xmpp4r/lib"
require 'xmpp4r'
require 'xmpp4r/version'
include Jabber

Jabber::debug = true
puts Jabber::XMPP4R_VERSION

client = Client.new(JID::new("rbot@openfire.server.com"))
client.connect
client.auth("bestpasswordever")
client.send(Presence.new.set_type(:available))

http://pastebin.com/CevFR2Qj

···

--
Posted via http://www.ruby-forum.com/.

Can you define 'not work'

Does it 'not connect', 'not authorise'.....

···

--
Posted via http://www.ruby-forum.com/.