I cannot get this piece of code to work with my openfire 3.7.0 xmpp
server.
I was wondering if anyone has had success with xmpp4r ?
thank you.
#!/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))