Skip to content

Commit

Permalink
Removed support for protocols regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Apr 5, 2017
1 parent 138605d commit d6dff7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"duplexify": "^3.2.0",
"inherits": "^2.0.1",
"through2": "^2.0.0",
"ws": "^2.0.0",
"ws": "^2.2.3",
"xtend": "^4.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function WebSocketStream(target, protocols, options) {
if (protocols && !Array.isArray(protocols) && 'object' === typeof protocols) {
// accept the "options" Object as the 2nd argument
options = protocols
protocols = []
protocols = null

if (typeof options.protocol === 'string' || Array.isArray(options.protocol)) {
protocols = options.protocol;
Expand Down

0 comments on commit d6dff7a

Please sign in to comment.