XMPP + pubsub + ajaxpush
I needed to implement ajax push for real-time updates if there is a database update, group chat etc. As far i have come to know after researching on the net that methods like having a comet server, pubsubhubub & some series of ajax hack and turnarounds like long polling etc.
I found my requirements were full filled using XMPP by strophe and flxhr and bosh.
My queries :
which is the best method keeping in mind the speed , real time nature, opensource & scalability
while trying to send xmpp stanza for creating a node to pubsub.jabber.org it sends a reply with error saying remote-server not found. How can i solve this issue.
A idiotic sounding query - I am using openfire as xmpp server and a public bosh service at http://bosh.metajack.im:5280/xmpp-httpbind. now in future when i will upload my website to say bigdaddy on some domain... does bigdaddy etc run a xmpp server or other requirement for my website to be functional
If u have any links to tutorials etc in ajax push pls add those links.
what are future prospec开发者_开发问答ts of xmpp? which technique is gaining the most popularity for the same?
- Strophe.js implements XMPP over BOSH, so your first question boils down to Strophe.js and (some XMPP server) vs. flxhr and some web server infrastructure. I'm biased towards the XMPP/BOSH solution (since I live in that world), but since flxhr requires Flash, and BOSH can be implemented in a way that supports CORS, I don't see the advantage.
- This is likely a setup problem with your server. You need to support inbound connections, typically on port 5269/tcp, and have your DNS set up correctly. XEP-220 may provide some important clues for you.
- For production, you should run your own server, and your own BOSH service. Jack could look at all of your traffic if he desired.
- Google says: http://frishit.com/2010/06/setting-up-xmpp-bosh-server/
- If you want opinions like this, maybe you should start a separate question, but it's likely to get closed as non-technical on stackoverflow. Maybe one of the other StackExchange sites would be a better fit.
精彩评论