Re: [hybi] How to select which websocket protocol to use

Thomas Broyer <t.broyer@ltgt.net> Wed, 23 December 2009 08:54 UTC

Return-Path: <t.broyer@gmail.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 536B33A690F for <hybi@core3.amsl.com>; Wed, 23 Dec 2009 00:54:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.31
X-Spam-Level:
X-Spam-Status: No, score=-2.31 tagged_above=-999 required=5 tests=[AWL=-0.333, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 ZalMBE5G8+h5 for <hybi@core3.amsl.com>; Wed, 23 Dec 2009 00:54:21 -0800 (PST)
Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by core3.amsl.com (Postfix) with ESMTP id 5B7B83A68FE for <hybi@ietf.org>; Wed, 23 Dec 2009 00:54:21 -0800 (PST)
Received: by bwz23 with SMTP id 23so4764537bwz.29 for <hybi@ietf.org>; Wed, 23 Dec 2009 00:54:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=uc8o2fVA35fDVY6azpjQm1gJUGmmwmJ6Zen1HsAWM7M=; b=xisTYn7EhSv/CXNUkIhlfjJ53p5ElYm2M9UQ5M9coqBHKaH3bVXVIUBD+H2N2wnIMJ Ntly6Y+K9ORlFSYb1wD0qkwfT+fun4giRaqgKZFUnPeuH6q5YPzkw4Sg6K6+Gm1r97NA GSvxVds0aGTN0cJ8XWj0+lw59PBC3U292f2xk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=o0DmL6vypgq0WznzXHnCvKV1o7C/nQOmLLgFWuec2JH3LwalKYW9ZcY+UtbzAvB12f 0Dh4bpdiO0rf/Ss78e24oRFTZsLm7GWlMexLIABGv2oCWm9gWWU98SQ4UdcmBA8t37N4 Q+ZgfkOMMgQwCFiMsDCh2JgpiNRJG3z5h/6zM=
MIME-Version: 1.0
Sender: t.broyer@gmail.com
Received: by 10.204.33.193 with SMTP id i1mr6728834bkd.75.1261558439246; Wed, 23 Dec 2009 00:53:59 -0800 (PST)
In-Reply-To: <1261492671.8667.755.camel@vulcan.aspl.local>
References: <1261492671.8667.755.camel@vulcan.aspl.local>
Date: Wed, 23 Dec 2009 09:53:59 +0100
X-Google-Sender-Auth: b42dd01e2889961e
Message-ID: <a9699fd20912230053r72606fael1f7ea7d4426145e8@mail.gmail.com>
From: Thomas Broyer <t.broyer@ltgt.net>
To: Francis Brosnan Blazquez <francis@aspl.es>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: WhatWG <whatwg@whatwg.org>, Hybi <hybi@ietf.org>
Subject: Re: [hybi] How to select which websocket protocol to use
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, 23 Dec 2009 08:54:22 -0000

On Tue, Dec 22, 2009 at 3:37 PM, Francis Brosnan Blazquez wrote:
>
> In the case someone wants to use BWTP, how is this signaled to the
> Websocket (javascript) API?

IIUC, BWTP and Websocket are not really comparable, and the Websocket
API is only designed to work with the Websocket protocol (BWTP
supports metadata in every "message" for instance, which the Websocket
API wouldn't expose).

> Is this controlled by the "protocol" constructor argument?

This argument will populate the "subprotocol name" of the Websocket
handshake, it's not meant to switch to BWTP or other bidirectional
protocols.

-- 
Thomas Broyer
/tɔ.ma.bʁwa.je/