Can XMPP be used like Comet's http long wait?
Asked Answered
R

2

6

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?

Revelationist answered 2/9, 2009 at 7:8 Comment(0)
I
7

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 synchronous HTTP request/response pairs without requiring the use of frequent polling or chunked responses.

jbosh is an open source Java implementation. Tigase.org has a number of projects, including BOSH support, and appears to be mostly Java/GWT. JAXMPP is a Java library in the framework, although it's not clear what feature set it supports. I've not tried any of these myself.

Ichthyoid answered 2/9, 2009 at 7:53 Comment(3)
@cometta: I've added Java links to the revised answer.Ichthyoid
can you comment on benefit of using xmpp bosh approach compared with comet ? which stand out better?Revelationist
@cometta: I think that is a detailed enough discussion to require its own question.Ichthyoid
S
3
Succinate answered 7/6, 2010 at 3:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.