Re: [hybi] Sec-WebSocket-Protocl

Iñaki Baz Castillo <> Sun, 19 June 2011 15:14 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 23A9111E80B0 for <>; Sun, 19 Jun 2011 08:14:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.66
X-Spam-Status: No, score=-2.66 tagged_above=-999 required=5 tests=[AWL=0.017, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-1]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id fV7SCDxQ6y6h for <>; Sun, 19 Jun 2011 08:14:26 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 82B5011E8070 for <>; Sun, 19 Jun 2011 08:14:26 -0700 (PDT)
Received: by qyk9 with SMTP id 9so1266735qyk.10 for <>; Sun, 19 Jun 2011 08:14:26 -0700 (PDT)
MIME-Version: 1.0
Received: by with SMTP id e20mr3218902qce.192.1308496465808; Sun, 19 Jun 2011 08:14:25 -0700 (PDT)
Received: by with HTTP; Sun, 19 Jun 2011 08:14:25 -0700 (PDT)
In-Reply-To: <>
References: <>
Date: Sun, 19 Jun 2011 17:14:25 +0200
Message-ID: <>
From: =?UTF-8?Q?I=C3=B1aki_Baz_Castillo?= <>
To: Dan Adkins <>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: [hybi] Sec-WebSocket-Protocl
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Sun, 19 Jun 2011 15:14:27 -0000

2011/6/17 Dan Adkins <>om>:
> So, we know what the server MUST do if the server supports multiple
> subprotocols.  But what if the client didn't include that field?  Is
> the server free to respond with the protocol of its choice?  That
> seems strange that the server would be allowed to say to the client,
> "we're speaking this protocol, like it or not," as the client has no
> opportunity to respond.
> Maybe I'm reading too much into this, but it does seem like there's a
> bit of a hole in the spec as I can't find the answer to my original
> question: if the client doesn't specify a subprotocol, can the server
> dictate one?

I agree. And I expect that subprotocol field will have not to much
real usage. Instead, a webdeveloper will make JavaScript to open a WS
connection with his server and start speaking the subprotocol even
without negociating it (as both the client side and server side will
be coded by same provider). It will be much like the web world, in
which each page is an independent world.

Iñaki Baz Castillo