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
1
vote
1 answer

Xmpp4r Google Talk Unable To Set Presence

I want to be able to set my presence (ie status and availability) for my google talk from a ruby script. I can't seem to be able to make it work using xmpp4r. I think it might either be that google talk doesn't set the presence through this xml…
jaredlwong
  • 43
  • 1
  • 7
0
votes
1 answer

XMPP4r bot presence - randomly appearing offline until restart?

I have some bots built with XMPP4r and I'm seeing a strange problem where they will appear offline after being online for a while. (no set amount of time) I'll see them fine in my roster one night, and the next morning I'll wake up the next morning…
Scott
  • 1,164
  • 2
  • 14
  • 24
0
votes
1 answer

Ruby 24/7 working XMPP bot

Could someone help me with this? I would to create a bot which receives word in one language, looks in database, gets translation and sends it back. How i understand it's not possible on shared hostings, but possible on own servers or VDS. So do i…
user633230
  • 21
  • 2
0
votes
1 answer

on_message and on_private_message

I am currently using XMPP4R on Cloud9. conference.on_message {|time, nick, text| case text when /regex/i #Same Command as on_private_message end end } conference.on_private_message {|time,nick, text| case…
User1999
  • 3
  • 2
0
votes
1 answer

XMPP transport to another protocol

I would like to add support of ICQ in my application using jabber-transport. I use xmpp4r ruby's library. All that I found doesn't show how to login to external (icq) server and how to send messages. Can you show example of code or text explanation…
Pavel Manylov
  • 649
  • 1
  • 6
  • 17
0
votes
0 answers

-lidn error after adding xmpp framework

I am getting this issue after adding XMPP framework. I tried all the answers on stack overflow and other sites as well but did not find the solution.
0
votes
1 answer

Error Jabber::ClientAuthenticationFailure: not-authorized using xmpp4r and openfire

I am using Openfire and xmpp4r to connect to server with the help of tutorial. This tutorial is working fine for everyone except me, its throwing error on line @client.auth(@password) Error is Jabber::ClientAuthenticationFailure:…
Haider Ali
  • 800
  • 2
  • 9
  • 22
0
votes
1 answer

Rails + xmpp4r + puma. Whem puma run as daemon XMPP disconnects

I've got an initializer which starts xmpp4r client. It works fine when I run puma server as a regular process. But when I start puma as a daemon (-d option) it works for a few seconds and disconnects from the xmpp server. I've got separate thread…
Oleg Antonyan
  • 2,943
  • 3
  • 28
  • 44
0
votes
1 answer

XMPP transport to ICQ

I try to send messages to icq via jabber-transport. I tried to use code from this answer XMPP transport to another protocol, but I got this message: DEBUG -- : SENDING:
0
votes
0 answers

xmpp4r create group from code

I'm using xmpp4r with Rails 4 to implement a real-time web chat system. The XMPP server is Openfire and I'm using converse.js for the web client part. The problem is the following: when I login through the converse.js widget, the client is…
The Coding Monk
  • 7,684
  • 12
  • 41
  • 56
0
votes
1 answer

How to send XMPP message from Rails Web to Mobile App?

We need to build a mobile application whose API will be written in Ruby on Rails. There is a requirement to send xmpp messages for some cases to mobile ? Please help how to do it ?
0
votes
1 answer

how to remove chat in ejabber using ruby on rails

I know how to send but i don't know how to recive and delete it. jid = Jabber::JID.new('user') client = Jabber::Client.new(jid) client.connect('54.187.67.96',5222) client.auth('password') …
Jigar Bhatt
  • 4,217
  • 2
  • 34
  • 42
0
votes
1 answer

How Can I Use xmpp4r To Detect The Online/Offline Status Of A Given Jabber ID?

What is the proper xmpp4r way to know if a given contact is online before sending them a message? Can you post sample xmpp4r code for doing this? Here is my use case: If contact online, send :normal message Else, email contact Here are things I…
johnnygoodman
  • 475
  • 6
  • 19
0
votes
1 answer

Can't send a message from xmpp4r?

I'm trying to test sending a message to one jid account by using xmpp4r: require 'xmpp4r' include Jabber jid = JID::new('alice@wonderland.lit') password = 'secr3t' cl =…
Samnang
  • 5,536
  • 6
  • 35
  • 47
1 2
3