XMPP library for facebook chat

So facebook opens us chat servers ... great. I'm new to XMPP, so what would be the best JS library to connect to their servers?

I searched Google for a tutorial article but found nothing. Can someone direct me to one?

+4
source share
3 answers

As Yoshi noted, the stanza is a very good javascript library. But you need a BOSH manager to connect from javascript to XMPP. You can use a standalone manager, for example, punjab.

If you cannot start the BOSH manager, you can also connect to XMPP via flash without BOSH.

+7
source

I recommend using strophe.js. For direct communication with another server and bypassing the same javascript source policy, you can use strophe with the flxhr plugin, which is a workaround based on the use of flash. Therefore, you do not need to configure the connection manager on your server (webserver proxy server for punjab, etc.).

I also recommend the book "Professional XMPP Programming with JavaScript and jQuery." It comes with a range of javascript / html code examples.

+6
source

strophe.js is a powerful and widely used XMPP library for JavaScript.

+5
source

All Articles