开发者

XMPP library for facebook chat [closed]

开发者 https://www.devze.com 2023-01-13 09:46 出处:网络
Closed. This question does not me开发者_Python百科et Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not me开发者_Python百科et Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

So facebook is opening its chat servers to us... great. I am new to XMPP, so what would be the best JS library to connect to their servers?

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


As Joschi pointed out strophe is a very good javascript library. But you need a BOSH manager to connect from javascript to XMPP. You could use a standalone manager like for example punjab.

If you can not run a BOSH manager then you could also connect to XMPP via flash without BOSH.


I recommend using strophe.js. For communicating directly with a different server and bypassing the same origin policy of javascript you could use strophe with flxhr plugin, which is a neat flash based workaround. So no connection manager setup (webserver proxy to punjab and so on) is required on your server.

I also recommend the book "Professional XMPP Programming with JavaScript and jQuery". It comes with a whole lot of sample javascript/html applications code.


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

0

精彩评论

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

关注公众号