max-mapper / websocket-stream

websockets with the node stream API
BSD 2-Clause "Simplified" License
668 stars 114 forks source link

Protocols are not set in browser when options object is used #102

Closed emallson closed 7 years ago

emallson commented 7 years ago

In stream.js, if the environment is a browser with native websocket support and the options object is used, protocols is always null.

This means that the library user can't set the protocol. In my case, this actually means I can't connect to the websocket server (Mosquitto via libwebsockets).