Can XMPP be used like Comet's http long wait?
问题 Can XMPP be applied in a similar way to the reverse Ajax pattern? Can it be used to implement http long wait like Comet? Is there an example of using such a technique with XMPP? 回答1: Yes. Take a look at XMPP over BOSH. It's a long-lived non-polling technique. From the 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