fix an error when permessage-deflate is enabled and closing socket
Merge pull request #411 from nkzawa/patch-0

Fix an error when permessage-deflate is enabled and closing socket
[dist] 0.6.3
Documented websocket.upgradeReq

In my attempt to associate a websocket with a specific client I had to override `websocket.handleUpgrade` and call it abstractly inorder to get both the request and the websocket in one place. If I would have known that it was available, I wouldn't have to code so dirty for something I think many people would need.
Merge pull request #414 from formula1/master

Documented websocket.upgradeReq
tests call WebSocket constructor with String/Array protocols argument

This breaks tests, but they will be fixed by the next commit.
Add handling of protocols in initAsClient function

The Sec-WebSocket-Protocol are not included in header.
So far it is possible to override this functionality calling new WebSocket("ws://URL",{protocol:"USER DEFINED PROTOCOL"})

(cherry picked from commit c08b70feca5cb2745306b1f6e165490875117c15)

resolves #323
resolves #290
resolves #298
lib/WebSocket.js: remove TODO about subprotocols

This was added in 887ebcb (#227), but has since been done.
Document compress option in websocket.send
Merge pull request #418 from garcg/patch-1

Document compress option
Merge pull request #415 from joseph-onsip/clientprotocols

Follow W3C spec for constructor's `protocols` argument