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 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
正如 Joschi 指出的那样,strope 是一个非常好的 javascript 库。但您需要 BOSH 管理器 进行连接从 javascript 到 XMPP。您可以使用独立的管理器,例如旁遮普语。
如果您无法运行 BOSH 管理器,那么您也可以在不使用 BOSH 的情况下通过闪存连接到 XMPP。
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.
我建议使用 strope.js。为了直接与不同的服务器通信并绕过 JavaScript 的同源策略,您可以使用 strope 和 flxhr 插件,这是一个基于 Flash 的简洁解决方法。因此,您的服务器上不需要连接管理器设置(旁遮普语的网络服务器代理等)。
我还推荐《使用 JavaScript 和 jQuery 进行专业 XMPP 编程》一书。它附带了大量示例 javascript/html 应用程序代码。
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.
stropice.js 是一个强大且广泛使用的 JavaScript XMPP 库。
strophe.js is a powerful and widely used XMPP library for JavaScript.