W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] [hybi] How to select which websocket protocol to use

From: Thomas Broyer <t.broyer@ltgt.net>
Date: Wed, 23 Dec 2009 09:53:59 +0100
Message-ID: <a9699fd20912230053r72606fael1f7ea7d4426145e8@mail.gmail.com>
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/
Received on Wednesday, 23 December 2009 00:53:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:54 UTC