可以 XMPP以与 reverse Ajax 类似的方式应用图案?可以用来实现http long wait之类的Comet吗? ?是否有将这种技术与 XMPP 结合使用的示例?
最佳答案
是的。看看XMPP over BOSH .这是一种长期存在的非轮询技术。来自 BOSH specification :
This specification defines a transport protocol that emulates the semantics of a long-lived, bidirectional TCP connection between two entities (such as a client and a server) by efficiently using multiple synchronous HTTP request/response pairs without requiring the use of frequent polling or chunked responses.
jbosh是一个开源的 Java 实现。 Tigase.org有许多项目,包括 BOSH 支持,而且似乎主要是 Java/GWT。 JAXMPP是框架中的一个Java库,虽然不清楚它支持什么特性集。我自己没有尝试过这些。
关于ajax - XMPP 可以像 Comet 的 http long wait 一样使用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1366219/