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
2
votes
2 answers

xmpp4r throws exception on login: "Exception caught in Parser thread! (Jabber::ServerDisconnected)"

I tried to connect to my XMPP server using xmpp4r in ruby and my code is very simple, but I don't know why I got error. I can successfully use ichat to log in using chat@localhost and also to the 5280/admin website. require 'xmpp4r/client' include…
Wei
  • 422
  • 1
  • 7
  • 15
2
votes
1 answer

Not able to send facebook message using xmpp4r_facebook

I am following the instructions presented in http://dalibornasevic.com/posts/35-how-to-send-private-messages-with-facebook-api to send message to my friend and currently testing from command line. Following is the code I am using. When I open my…
raju
  • 4,788
  • 15
  • 64
  • 119
2
votes
1 answer

Error while sending message using xmpp4r_facebook

I am following the instructions presented in http://dalibornasevic.com/posts/35-how-to-send-private-messages-with-facebook-api to send message to my friend and currently testing from command line. Following is the code I am using require…
raju
  • 4,788
  • 15
  • 64
  • 119
2
votes
2 answers

Getting RID and SID using XMPP4r

I'm having problems in how to get the SID and the RID after I connect to my jabber server using the XMPP4r gem. I can connect successfully and I just need the SID and RID to pass it to the javascript. I've searched the docs here but it hasn't helped…
Vincent Paca
  • 497
  • 3
  • 11
2
votes
1 answer

Ruby XMPP4R useer JID

I use xmpp4r gem for create simple jabber bot. how do you know jid users in the room? How do I know what jid posted a message? Example code: @room.join Jabber::JID.new("#{conf}/#{nick}") @room.add_message_callback do |msg| #msg.jid? …
lito
  • 989
  • 8
  • 21
2
votes
2 answers

Get online users XMPP4r + Rails

I'm trying get online friends by user in XMPP server (Ejabberd). I'm using Ruby on Rails 3.2. The idea is to add in array all online users to use this on view page. I found asynchronous code (below), but it use Thread and it's difficult to work on…
Leandro Andrade
  • 993
  • 6
  • 9
1
vote
1 answer

XMPP4R icq transport troubles

jid = Jabber::JID.new('....@jabber.ru') j = Jabber::Client.new(jid) j.connect j.auth('12345') if i trying to send message through transport it responds to me SENDING:
antiqe
  • 1,125
  • 8
  • 17
1
vote
1 answer

Ruby on Rails, xmpp4r 0.5 and no such file to load -- xmpp4r

have ruby 1.8.7, gem 1.3.7 and rails 3.0.6. I wanted to add xmpp4r to my project, but i got error just i require this gem. I'm install this gem using gem install xmpp4r. Installation seems successful.But, why error then appear? P.S. if in console…
user600115
  • 69
  • 1
  • 6
1
vote
1 answer

Sending XMPP message to offline Google Talk user with ruby xmpp4r

When using Perl's Net::Jabber, sending a simple message to an offline user causes the message to be delivered to the user when he comes online (it even show's in the user's gmail account as unread messages). That's as simple as doing my $msg =…
Ricardo Pardini
  • 922
  • 7
  • 17
1
vote
2 answers

xmpp4r and Iq.new_register for in-band registration

I've been having trouble using xmpp4r to do in-band registration following the SO thread here: XMPP transport to another protocol The problem comes down to that I get a NoMethodError Exception error for new_register when I run the following…
James Testa
  • 2,901
  • 4
  • 42
  • 60
1
vote
1 answer

Ruby XMPP4R bot and Threads - trouble

I want my bot sends and receives messages in parallel threads. I also want my bot sends message back to user when receives any message from user. But now he sends it back to user every 5 seconds. I understand that it's because i used "loop do" but…
user633230
  • 21
  • 2
1
vote
1 answer

Setting Gtalk Status with Jabber

I'm using Jabber to communicate with gTalk server. Right now, I'm able to connect properly. Also, I can send/receive messages. But, I'm unable to set my gtalk presence as busy though jabber.status method require 'rubygems' require…
Mayur
  • 3,063
  • 10
  • 42
  • 55
1
vote
1 answer

XMPP, sending one message to thousands of jabberIDs - jabber ends up sending it to only a random part of selected group of JIDs

We've got one 'superuser' account that we use to send messages to selected JIDs. Lets say we've selected ones we want to send a message to, and we got ourselves a huge array of user JIDs (20k at this point). We've got a deamon running in the…
mmln
  • 2,104
  • 3
  • 24
  • 33
1
vote
1 answer

XMPP4R Callbacks dont seem to work

Im using xmpp4r and trying to get the hang of a basic chat feature that I wish to implement later in my Rails app. My fundamentals on Ruby Threads is still a bit shaky so I would appreciate any help on this. Though I register the callback i dont…
Sid
  • 6,134
  • 9
  • 34
  • 57
1
vote
3 answers

How to get port number for iPhone Chatting Application

I am developing a chat application. But Right now chatting is possible with only google because I know only google's port no. xmppClient = [[XMPPClient alloc] init]; [xmppClient addDelegate:self]; // Replace me with the proper domain and port. //…
sagarkothari
  • 24,520
  • 50
  • 165
  • 235