Add server sub-protocol handler option.

If the handleProtocols attribute is set in the options for
WebSocketServer then this function will be called to select
a subprotocol otherwise the first subprotocol sent by the client will
be returned.

The handleProtocols function takes two arguments: a list of subprotocol
strings and a callback. The callback takes two arguments: the result
and the selected subprotocol. The handleProtocols handler routine
should select a subprotocol from the subprotocols first argument based
on whatever criteria the application uses and call the callback with
first argument set to true and the selected subprotocol string as the
second argument. If the application determines that the client
subprotocol list does not have a valid subprotocol then it should call
the callback with a false first argument. This will cause the
handshake to fail with a 404 (not found) error.
Merge pull request #126 from kanaka/master

Allow application selection of subprotocol value
Revert "Add server sub-protocol handler option."

This reverts commit 0eea4c437ce35fe28cedfa238be45261a66c246c.
listen on 0.0.0.0 by default - fixes #132
bump
Removed both unused arguments from WebSocketServer#close()
Added wscat option for specifying subprotocol
Add some node-ish APIs

Please note that they are not intended to reflect already existing APIs.
Merge pull request #133 from ronkorving/master

Removed unused arguments from WebSocketServer#close
Merge pull request #135 from mmalecki/node-apis

Add some node-ish APIs
Merge pull request #134 from leedm777/subprotocol

Added wscat option for specifying subprotocol
Merge pull request #125 from machenmusik/master

handle proxy forwarding headers; handle binary frames for draft-76 (type 0x80)
Emit 'listening' also with custom http server.
support overwriting host header
further changes to ensure that install runs without native support
add browser shim to package.json

When packaging this module for client side delivery, the browser field
in package.json provides a hint to the package tool about which files to
replace with client targeted counterparts.
history update
bump
Merge pull request #143 from shtylman/master

add browser field to package.json
got rid of install.js