diff --git a/lib/WebSocket.js b/lib/WebSocket.js
index <HASH>..<HASH> 100644
--- a/lib/WebSocket.js
+++ b/lib/WebSocket.js
@@ -512,7 +512,7 @@ function initAsClient(address, protocols, options) {
     protocolVersion: protocolVersion,
     host: null,
     headers: null,
-    protocol: null,
+    protocol: protocols.join(','),
     agent: null,
 
     // ssl-related options
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 c<I>b<I>feca5cb<I>b1f6e<I>c<I>)

resolves #<I>
resolves #<I>
resolves #<I>