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

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