Fix the sub protocol header handler
handle error on socket to avoid exception
clear failsafe cleanup timeout once cleanup is called
Merge pull request #120 from AndreasMadsen/clear-timer

clear failsafe cleanup timeout once cleanup is called
Merge pull request #105 from jmatthewsr-ms/master

unhandled exception if socket closes and 'error' is emitted
Merge pull request #97 from sonnyp/master

Fix the sub protocol header handler
bump
handle proxy forwarding headers
handle binary frames for draft-76 (type 0x80)
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
remove commented-out console.log; add simple tests
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