xmpp红宝石客户端谷歌云消息服务

问题描述:

我想在Ruby中为GCM CCS编写一个xmpp实现。 我的代码xmpp红宝石客户端谷歌云消息服务

require 'xmpp4r' 

sender_jid = Jabber::JID.new('[email protected]') 
client = Jabber::Client.new(sender_jid) 
client.connect('gcm.googleapis.com', 5235) 
client.auth('auth_token') 

client.connect之后....我得到这个错误:

fatal: No live threads left. Deadlock? 

任何想法?

client.use_ssl = true 

解决了这个