-
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
EventMachine::ConnectionError Exception: unable to resolve server address #137
Comments
So, first question is why are you testing against this EventMachine server? It's clearly not a competent XMPP server. Secondly, I'd say the reason for the exception is fairly clear. You've tried to login to |
Hi, Thanks for the answer. It makes some sense now. I am new to xmpp and blather. I made wrong conclusions when I read I directly started reading about blather, I think I need to know about xmpp first.. Will it be possible for you to guide me with what to be read to make a real-time app running with blather? Thanks |
I can't give you any advice about your app because I don't know what your goals are. What do you mean "a real-time app"? |
I want to create a facebook-ticker like feature using blather. |
I have no idea what a Facebook ticker is, sorry. |
This is what a facebook-ticker is http://i.t1n.se/2011/facebook-ticker-400x209.png. Please let me know if you can relate to it. Like facebook-ticker I want a user interactions on the website to be displayed in his friend circle (in close to real time). |
@bhuwan-arora I think you've got the wrong idea. This doesn't look like the kind of thing XMPP was designed to do. XMPP is a chat protocol - like Google Chat, AOL Instant Messenger, MSN Messenger, etc. It shares chat messages and presence information in real-time. You can use XMPP to build chat applications in a web interface (like Facebook Chat), but it's not designed for a timeline of historical events at all. |
What's wrong with AJAX? It looks like that is your use case. |
@bklang I too haven't seen implementation of real-time-notifications using xmpp anywhere. But I guess both chat and real-time-notifications are executing the same kind of task, i.e. a server is listening for requests and whenever a new request is heard, it is delivered to the client. What's the difference between the two then..Please tell me where I am wrong? @polysics If I go with AJAX then I will have to do something like |
@bhuwan-arora It's not that you can't use XMPP for this, it's that you shouldn't use XMPP for this (at least, not only for this). XMPP provides a host of things that it sounds like you don't need or care about (presence, typing notifications, multi-user chat) and it requires an external service to be running (ejabberd, for instance). These things are great, but if you don't need them, it's just extra complexity. All you really want is a browser push mechanism and a storage system. There are dozens of ways to do achieve what you want that are simpler and don't require a dedicated network service to be running. It's about choosing the right tool for the job. |
@bklang Thanks, I got your point. This cleared a lot of confusion and saved a lot of time for me. |
@bklang Your argument is a simplification of XMPP, and is not correct. There's a bunch of material around about this (eg http://vimeo.com/41172502). XMPP is perfectly suited for these things (in this case, pubsub), especially since YAGNI almost certainly doesn't apply to this situation - extra features are almost certainly going to be added to some anorexic implementation until you've reinvented the last 15 years of work on XMPP. Don't do this, it's bad. @bhuwan-arora Be aware that XMPP in the browser means one of two things: BOSH (long polling, XMPP over HTTP) or XMPP over WebSockets. My intent is not to patronise or dissuade, but if your reasoning on this subject amounts to "I have read these things are out-dated", then I'm thinking maybe you should seek help from someone experienced in building these kinds of systems. |
@benlangfeld "I am very much new to xmpp" and I am saying all this with the limited experience. I will read about this more. Thanks a lot for clarifying. |
Hi! I am following the basic given example for blather..
but I am getting this error
on execution of
client.run
in the code below and the server shuts down..Here is the
config/initialisers/xmpp.rb
While I am running the Eventmachine server by (which I runs well when I check and run telnet localhost 8081)
ruby app/helpers/echo_server.rb
What all am I doing wrong...
Can you please help me out?
The text was updated successfully, but these errors were encountered: