Re: [hybi] WebSockets

Peter Saint-Andre <stpeter@stpeter.im> Tue, 31 March 2009 01:58 UTC

Return-Path: <stpeter@stpeter.im>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 05E1C3A6845 for <hybi@core3.amsl.com>; Mon, 30 Mar 2009 18:58:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.303
X-Spam-Level:
X-Spam-Status: No, score=-2.303 tagged_above=-999 required=5 tests=[AWL=0.296, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SHX7QQvp5O6G for <hybi@core3.amsl.com>; Mon, 30 Mar 2009 18:57:58 -0700 (PDT)
Received: from dizzyd.com (dizzyd.com [207.210.219.225]) by core3.amsl.com (Postfix) with ESMTP id B30323A65A6 for <hybi@ietf.org>; Mon, 30 Mar 2009 18:57:58 -0700 (PDT)
Received: from squire.local (dsl-251-191.dynamic-dsl.frii.net [216.17.251.191]) (Authenticated sender: stpeter) by dizzyd.com (Postfix) with ESMTPSA id BBF85E8002; Mon, 30 Mar 2009 19:58:56 -0600 (MDT)
Message-ID: <49D178DF.3080005@stpeter.im>
Date: Mon, 30 Mar 2009 19:58:55 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
MIME-Version: 1.0
To: "Roy T. Fielding" <fielding@gbiv.com>
References: <Pine.LNX.4.62.0903302124580.25058@hixie.dreamhostps.com> <BBB4A96C-6101-43C5-AF62-2E242EE64B31@gbiv.com>
In-Reply-To: <BBB4A96C-6101-43C5-AF62-2E242EE64B31@gbiv.com>
X-Enigmail-Version: 0.95.7
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="------------ms020905040607040701020904"
Cc: hybi@ietf.org
Subject: Re: [hybi] WebSockets
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Mar 2009 01:58:00 -0000

On 3/30/09 7:43 PM, Roy T. Fielding wrote:
> On Mar 30, 2009, at 2:34 PM, Ian Hickson wrote:
> 
>> The goal of the WebSocket work is to provide two-way communication from a
>> Web page in a clean way.
> 
> It would be nice to have a list of use cases for why anyone would want
> a Web page (as opposed to an installed client or client extension) to
> provide two-way communication, and also why that two-way communication
> must be tunneled over the Web ports in a way that deliberately intends
> to fool security-enforcing intermediaries into thinking it is HTTP.

I can't speak for the WebSocket work, but I know that in XMPP we use
BOSH <http://xmpp.org/extensions/xep-0124.html> as a way of emulating
long-lived TCP connections over HTTP. We do this to build browser-based
clients (a "no-download" solution) and to support devices that cannot
maintain long-lived TCP connections (either because of device
restrictions or network conditions). BOSH traffic is not necessarily
tunneled over ports 80 and 443, and the purpose is not to work around
firewalls but to offer an alternative binding for XMPP traffic when the
TCP binding defined in RFC 3920 is simply not feasible.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/