Just as mention in the draft, websocket protocol is designed to be extended and we can use extensions that had registered. For example extension deflate-application-data that can do some compressing jobs during data transmitting, detail is here. Well, it maybe has a bit troubles in design but it's not the point.
My question is that how can we use these extensions? We create a websocket like this:
var socket = new WebSocket('ws://game.example.com:12010/updates');
Websocket api seems not provide such chance to add or modify websocket protocol header. Dose the websocket api not support extensions currently?