Benjamin Harel
Benjamin Harel

Reputation: 2946

xmpp ruby client for google cloud messaging service

I'm trying to write a xmpp implementation in Ruby for GCM CCS. My code

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')

after client.connect .... I get this error :

fatal: No live threads left. Deadlock?

Any ideas?

Upvotes: 1

Views: 359

Answers (1)

Benjamin Harel
Benjamin Harel

Reputation: 2946

client.use_ssl = true

solves this

Upvotes: 1

Related Questions