On Mon, Jul 28, 2008 at 9:35 PM, Jack Moffitt <[EMAIL PROTECTED]> wrote:

> > Suggestions from many forums is to use a synchronous xhr
> > connection in unload, which could work for normal BOSH but not script
> syntax
> > (which my app will be using for xdomain properties).
>
> Be aware that we are planning on removing the alternative script
> syntax from the spec.  There are a lot of hidden gotchas.  At the XMPP
> Summit, we realized that it hadn't been sufficiently specced and
> should never have been added to a mature XEP anyway.


Hmmm, interesting. Would you mind summing up the known gotchas for those of
us who didn't make it to the summit?

I can agree that it maybe was an uncalled for late addition, but really I
had no problem implementing it (not to say I couldn't have assumed things
that weren't written). I only had to change only my write and
onWriteResponse methods for it to work; otherwise the code is identical to
regular syntax.

If you're going to be cleaning house, is there any chance of removing HTTP
error codes or saying they MUST coincide with actual BOSH 'terminate' error
responses being sent? This hasn't been a major problem for me, but I scratch
my head as to why HTTP codes are in there if not for legacy reasons.


>
>
> I think the real solution is to implement your cross domain support
> with window.name tunneling from a hidden iframe.  I'll work up an
> example of this soon.


I'm trying not to be an apologist for script syntax, as long as we have some
form of x-domain possible I'm happy =] IMO that is essential for this to be
a viable standard to build a SaaS social platform on (my interest ;).
Already though, Facebook and most likely Meebo will roll their own mechanism
based on bayeux-like protocols to communicate with XMPP servers which I
consider to be a sign that the open standard isn't friendly to their use
cases.

Speaking of open standards based approaches, is there any interest in
perhaps even creating another standard that relies on Bayeux rather than
specifying a custom COMET protocol like XEP-0124 does?

Harlan

Reply via email to