我正在使用 Jabber 与 gTalk 服务器进行通信。现在,我可以正常连接。此外,我可以发送/接收消息。但是,我无法将我的 gtalk 状态设置为忙碌但jabber.status
方法
require 'rubygems'
require 'xmpp4r-simple'
include Jabber
#Jabber::debug = true
jid = 'user@gmail.com'
pass = 'password'
jabber = Simple.new(jid, pass)
jabber.status(:dnd, 'password')
jabber.deliver('user2@gmail.com','away')
你能建议我哪里出错了吗?谢谢。