Re: [hybi] Support for sub-protocols on the WebSocket API?

Clebert Suconic <clebert.suconic@gmail.com> Fri, 09 September 2011 18:32 UTC

Return-Path: <clebert.suconic@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1F9D521F86EC for <hybi@ietfa.amsl.com>; Fri, 9 Sep 2011 11:32:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kaVFSFnxs02i for <hybi@ietfa.amsl.com>; Fri, 9 Sep 2011 11:32:18 -0700 (PDT)
Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by ietfa.amsl.com (Postfix) with ESMTP id BA6F321F86D0 for <hybi@ietf.org>; Fri, 9 Sep 2011 11:32:18 -0700 (PDT)
Received: by pzk33 with SMTP id 33so9998229pzk.18 for <hybi@ietf.org>; Fri, 09 Sep 2011 11:34:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AvYpN2AqOKwUGVMBxuUEFiGNXrxegLJW2JLCO1TjU5Q=; b=pO5De0g4eHYA0tQNJ3joEijot0Fpl8/Lcz8zaqaUWIf6kBCnQOZxRbFeL+3T5ys7/e NwB1y4Xqo4zOryAfW7mRt+feNbjfeL9BE1VMszXyPkQLZ6q5bPofVtZitPfzg/inWcMz AoeAAnywFQM4O2eqO3d46gNpYksd3cDbfprDc=
MIME-Version: 1.0
Received: by 10.68.38.135 with SMTP id g7mr306258pbk.140.1315593252877; Fri, 09 Sep 2011 11:34:12 -0700 (PDT)
Received: by 10.142.143.13 with HTTP; Fri, 9 Sep 2011 11:34:12 -0700 (PDT)
In-Reply-To: <CABLsOLBbD2k8aNwn-jBFAcCecrCGTENN-GD=UaJtDi3=akO18Q@mail.gmail.com>
References: <CAKF+bsoW1_EtzMBEMfRTnJ1PKdpRUGm44ju8TMNbe-xWdaSpLQ@mail.gmail.com> <CABLsOLBbD2k8aNwn-jBFAcCecrCGTENN-GD=UaJtDi3=akO18Q@mail.gmail.com>
Date: Fri, 09 Sep 2011 13:34:12 -0500
Message-ID: <CAKF+bsprn9uB4WrM-Mr6fVr1UfkMOyK2C1py-QSd+2XA_6oONQ@mail.gmail.com>
From: Clebert Suconic <clebert.suconic@gmail.com>
To: John Tamplin <jat@google.com>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: hybi@ietf.org
Subject: Re: [hybi] Support for sub-protocols on the WebSocket API?
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Fri, 09 Sep 2011 18:32:20 -0000

On Tue, Sep 6, 2011 at 4:42 PM, John Tamplin <jat@google.com> wrote:
> On Tue, Sep 6, 2011 at 5:39 PM, Clebert Suconic <clebert.suconic@gmail.com>
> wrote:
>>
>> I was looking for a way to send a custom opcode on a subprotocol, ...
>
> A subprotocol does not allow you to define new opcodes -- you can however,
> define how those payloads are to be interpreted (ie, send everything as
> OPCODE_BINARY, and then process it how you like).
> --

What about session 11.8 on the websocket-protocol:
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-14#section-11.8


If I wanted to create an extension (a sub-protocol), I would be able
to use additional opcodes, right?

Or there's another interpretation here?