einaros/ws — pull request #323 by ch3sn3k (2014-05-27 15:23:45+00:00)
Title: Add handling of protocols in initAsClient function

Value of the variable "protocols" is not copied to the "'Sec-WebSocket-Protocol" property in websocket upgrade header.

So far it is possible to override this functionality calling
new WebSocket("ws://URL" , {protocol:"USER DEFINED PROTOCOL"});

Please pull this simple repair.

Thank you in advance