websocket-stream
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -7,4 +7,3 @@ var through = require('through2') | ||
function WebSocketStream(target, options) { | ||
if (!options) options = {} | ||
function WebSocketStream(target, protocols) { | ||
var stream, socket | ||
@@ -18,3 +17,3 @@ var proxy = through(socketWrite, socketEnd) | ||
} else { | ||
socket = new WS(target, options) | ||
socket = new WS(target, protocols) | ||
socket.binaryType = 'arraybuffer' | ||
@@ -21,0 +20,0 @@ } |
{ | ||
"name": "websocket-stream", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Use websockets with the node streams API. Works in browser and node", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8306
162