开发者

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 :

  1. which is the best method keeping in mind the speed , real time nature, opensource & scalability

  2. 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.

  3. 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

  4. If u have any links to tutorials etc in ajax push pls add those links.

  5. what are future prospec开发者_开发问答ts of xmpp? which technique is gaining the most popularity for the same?


  1. 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.
  2. 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.
  3. For production, you should run your own server, and your own BOSH service. Jack could look at all of your traffic if he desired.
  4. Google says: http://frishit.com/2010/06/setting-up-xmpp-bosh-server/
  5. 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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜