Re: [hybi] Multiplexing in WebSocket (Was: HyBi Design Space)

Greg Wilkins <gregw@webtide.com> Wed, 14 October 2009 03:01 UTC

Return-Path: <gregw@webtide.com>
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 B5C4C3A6994 for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 20:01:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.534
X-Spam-Level:
X-Spam-Status: No, score=-2.534 tagged_above=-999 required=5 tests=[AWL=0.065, 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 bTLGdBmuvBeP for <hybi@core3.amsl.com>; Tue, 13 Oct 2009 20:01:32 -0700 (PDT)
Received: from mail-pz0-f204.google.com (mail-pz0-f204.google.com [209.85.222.204]) by core3.amsl.com (Postfix) with ESMTP id EE4393A6951 for <hybi@ietf.org>; Tue, 13 Oct 2009 20:01:31 -0700 (PDT)
Received: by pzk42 with SMTP id 42so366508pzk.31 for <hybi@ietf.org>; Tue, 13 Oct 2009 20:01:30 -0700 (PDT)
Received: by 10.114.164.17 with SMTP id m17mr14149495wae.3.1255489290199; Tue, 13 Oct 2009 20:01:30 -0700 (PDT)
Received: from ?58.163.111.4? ([58.163.111.4]) by mx.google.com with ESMTPS id 22sm186982pzk.2.2009.10.13.20.01.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Oct 2009 20:01:29 -0700 (PDT)
Message-ID: <4AD53EFA.1070907@webtide.com>
Date: Wed, 14 Oct 2009 14:01:14 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <4ACE50A2.5070404@ericsson.com> <3a880e2c0910081600v3607665dp193f6df499706810@mail.gmail.com> <4ACF4055.6080302@ericsson.com> <Pine.LNX.4.62.0910092116010.21884@hixie.dreamhostps.com> <3a880e2c0910100853s6650d216mc53e8f70a192a896@mail.gmail.com> <Pine.LNX.4.62.0910132333430.25383@hixie.dreamhostps.com> <4AD510D7.3050405@webtide.com> <Pine.LNX.4.62.0910140030320.6803@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0910140030320.6803@hixie.dreamhostps.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing in WebSocket (Was: HyBi Design Space)
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: Wed, 14 Oct 2009 03:01:32 -0000

Ian Hickson wrote:

>> If you think this can be done in javascript libraries, then how do you 
>> see multiple frames, tabs and windows being handled in a secure way?
> 
> Using Shared Workers, if that is really desired. Frankly though I don't 
> think that multiple frames, tabs and windows are likely to all be 
> connecting to the same Web Socket service on the same host, at least not 
> enough to justify worrying about multiplexing, so it's not high on my list 
> of concerns.


Ian,

if multiplexing is supported, then sharing a TCP/IP connection does not
mean they are connected to the same service on the same host.

It only means they are connected to the same host (or proxy).

But imagine that you have a share trading application and that you
have multiple portfolios.   It is entirely plausible that you want
to watch each live portfolio in it's own window/tab/frame.

These may or may not talk to the same server resource (depending on
design, as each portfolio may be given it's own resource).  Why
shouldn't these windows share a TCP/IP connection?  They do so
for their normal content.

regards