-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with "eventmachine not initialized" #119
Comments
So, if you check out the example of a similar case, you don't need to call |
Thanks, I got it working, but then when I tried to switch to Facebook chat from my local ejabber server, it disconnects as soon as I send a message, and I don't see the message on the Facebook website. I'm using the same username and require 'blather/client'
setup 'me@chat.facebook.com', 'app-specific password'
msg = Blather::Stanza::Message.new 'user@chat.facebook.com', 'test 1'
when_ready {
puts 'ready'
write_to_stream msg
puts 'wrote'
}
disconnected {
puts 'disconnected'
} Gives
I'm pretty sure it's authenticating correctly, since when I make up a different password, the when_ready block isn't executed, and it disconnects. |
Try running with -D to see log output. Also, I was under the |
There are two Facebook chat XMPP auth methods. One is your username and an application-specific password, and the other is the app ID and app secret. Unless something jumps out at you from the below, I think I've hit a dead-end with the former and will try the latter next.
|
My
connect
call doesn't complete, and when I hitctrl-c
, I get the below message. Any recommendations on how I can further debug this? Thanks!The text was updated successfully, but these errors were encountered: