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"})