Questions tagged [xmpp4r]

A XMPP/Jabber library for ruby

XMPP4R is a ruby library that lets you build client application to communicate with an XMPP/Jabber server.

44 questions
13
votes
3 answers

How can I send an image on the web in an XMPP (Jabber) message?

For the XMPP interface for the Stack Overflow chat, I am currently taking the HTML of the chat messages and converting to valid XML, and setting that as the html child element of the XMPP message object. In my Mac OS X jabber client this was working…
Josh
  • 10,961
  • 11
  • 65
  • 108
8
votes
1 answer

XMPP4r - Unable to Retrieve Offline Messages

I am trying to get openfire multi user group chat history using ruby xmpp4r library with openfire server. I am able to frame the request but I am not getting the server reply. Below is the discovery request iqr =…
bapu
  • 661
  • 6
  • 7
7
votes
1 answer

Not able to get previous group chat history using ruby xmpp4r

I am using ruby xmpp4r library to implement multi user group chat application with openfire server. I have created chat room on openfire server successfully. If user joins into chat room with openfire credential it's not returning previous group…
bapu
  • 661
  • 6
  • 7
5
votes
3 answers

Rails + XMPP bot in background

I'm building a service which basically allows users to chat with a bot, and the bot then does some strange processing with the chat sent by the user, and eventually reply back with some meaningful data. Basically something similar to how Aardvark…
hashpipe
  • 305
  • 3
  • 16
4
votes
1 answer

Using XMPP, can I send a message without subscription?

I am currently writing a XMPP bot using xmpp4r (Ruby) but when it sends a message to a user using the same XMPP server, it does not deliver to the user. My condition is: The bot user is registered at XMPP server x. The human user who will get the…
sio4
  • 413
  • 1
  • 5
  • 15
3
votes
4 answers

Using Ruby, how can I confirm that an XML snippit is valid?

As some of you make know, I'm working on XMPP (Jabber) integration for the StackOverflow chat system, as an XMPP component written in Ruby using the xmpp4r package. I'm struggling with one issue (well, many issues, but one issue at the moment :-) I…
Josh
  • 10,961
  • 11
  • 65
  • 108
3
votes
1 answer

GCM + XMPP + Upstream Messages + Ruby on Rails

Use case: Android devices cannot contact Ruby On Rails server directly (it is behind firewall) and I cannot have a Internet server to receive requests directly. I need to have internal Rails server to retrieve messages from Android devices and…
2
votes
0 answers

Using ejabberd with Rails

I'm trying to create a chat component to add to an existing Rails web app (and perhaps optimize communication with clients along the way). The architecture I was thinking of is: when a user authenticates on Rails, create his/her Jabber credentials…
Quasar
  • 46
  • 4
2
votes
1 answer

Store pointer to object in database

I have a rails app, where every user can connect his Facebook account, and give permission to send messages from the app wich is using. So, every logged user with connected Facebook account must has one Jabber Client authorized with his Facebook-id,…
Radoslaw
  • 43
  • 4
2
votes
1 answer

Active Alternatives to Blather for XMPP in Ruby

While maintaining a project which uses the XMPP4R gem, I began looking at the documentation and noticed that the GitHub for https://github.com/ln/xmpp4r is no longer active, and has not been for at least two years. After visiting the XMPP site for…
Jeff LaJoie
  • 1,725
  • 2
  • 17
  • 27
2
votes
3 answers

iOS XMPP framework get all registered users

In my chat application I want to get all online registered users. So everybody and not only people in my roster which is achieved with this code: - (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)presence { // a buddy went…
Mark Molina
  • 5,057
  • 8
  • 41
  • 69
2
votes
2 answers

are there any APIs for changing google-talk status?

I want to write an application, which will: recieve and send email messages ( I know, I can do it with ActionMailer using RoR ) chat with my Google+ friends change my GoogleTalk (gmail) status So, when I open my gmail interface, I see list with…
bmalets
  • 3,207
  • 7
  • 35
  • 64
2
votes
1 answer

Using the xmpp4r Ruby gem, how can I synchronously discover if a contact is online?

I'm new to XMPP and the xmpp4r library, so please forgive my noob question if this is obviously documented somewhere. What's the most straightforward way, in a synchronous manner, to find out if a given JID is online? (so that I can call something…
Gabe Hollombe
  • 7,847
  • 4
  • 39
  • 44
2
votes
1 answer

"IOError: closed stream" error when authenticating on xmpp4r_facebook

This is quite strange since it used to work, and now it doesn't. If it was 'Not Authorized' error, it would have been easy, but with "IOError: closed stream", I am stumped. I thought it may have been due to expired token, but access token gets…
yangtheman
  • 509
  • 4
  • 21
2
votes
1 answer

Ruby Thread Deadlock in XMPP (xmpp4r)

I'm implementing a Google Talk listener that updates me with all my contact list items' presence. require 'xmpp4r' require 'xmpp4r/roster' require 'xmpp4r/roster/helper/roster' sender_jid = Jabber::JID.new('email') client =…
murtali
  • 118
  • 1
  • 10
1
2 3