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

Clebert Suconic <clebert.suconic@gmail.com> Tue, 06 September 2011 21:37 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 A2AE021F8F00 for <hybi@ietfa.amsl.com>; Tue, 6 Sep 2011 14:37:36 -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 Lshjv60uI2N5 for <hybi@ietfa.amsl.com>; Tue, 6 Sep 2011 14:37:36 -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 3788121F8EFC for <hybi@ietf.org>; Tue, 6 Sep 2011 14:37:36 -0700 (PDT)
Received: by pzk33 with SMTP id 33so17120781pzk.18 for <hybi@ietf.org>; Tue, 06 Sep 2011 14:39:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=JBLzMlA0neExLzYXG3uBM7FDHVSqPMJEYv5KQlxojRc=; b=Vv2TsQlMPKcX81E2EjA69YHuY7jxTKuiHFbT8o0KyDKQhhCHyBaLL/ocF85crjGlf0 IV+NM3XxZJ9tHun0XJ0IUWBk+6F5jS5cHu8zRHjEbkCU47iQas7JdZiERODfLKv5eVs7 q1w5S3UgUw4sXFz7BR/nLWLBXltJH8ruH1e5o=
MIME-Version: 1.0
Received: by 10.68.11.106 with SMTP id p10mr346752pbb.207.1315345160847; Tue, 06 Sep 2011 14:39:20 -0700 (PDT)
Received: by 10.142.133.1 with HTTP; Tue, 6 Sep 2011 14:39:20 -0700 (PDT)
Date: Tue, 06 Sep 2011 16:39:20 -0500
Message-ID: <CAKF+bsoW1_EtzMBEMfRTnJ1PKdpRUGm44ju8TMNbe-xWdaSpLQ@mail.gmail.com>
From: Clebert Suconic <clebert.suconic@gmail.com>
To: hybi@ietf.org
Content-Type: text/plain; charset="ISO-8859-1"
Subject: [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: Tue, 06 Sep 2011 21:37:36 -0000

I was looking for a way to send a custom opcode on a subprotocol, but
the WebSocket API (at least the one I found in most browsers) only
provides three very basic methods for sending, and nothing where I
would be able to use on  sub-protocol specifics as defined on the
spec. I could only find ways to send payload from client to server.

Is there any other API where I could make use and still use it to
develop sub-protocols in javascript?

I was looking into defining a subprotocol in javascript and be able to
use it on any client where web-socket is supported.



Thanks,