【问题标题】:xmpp ruby client for google cloud messaging service用于谷歌云消息服务的 xmpp ruby​​ 客户端
【发布时间】:2015-03-02 08:31:37
【问题描述】:

我正在尝试在 Ruby 中为 GCM CCS 编写一个 xmpp 实现。 我的代码

require 'xmpp4r'

sender_jid = Jabber::JID.new('my_app_id@gcm.googleapis.com')
client = Jabber::Client.new(sender_jid)
client.connect('gcm.googleapis.com', 5235)
client.auth('auth_token')

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

fatal: No live threads left. Deadlock?

有什么想法吗?

【问题讨论】:

    标签: ruby xmpp google-cloud-messaging


    【解决方案1】:
    client.use_ssl = true
    

    解决这个问题

    【讨论】:

      猜你喜欢
      • 2014-10-26
      • 2013-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多