websocket-stream
Advanced tools
Comparing version 5.2.0 to 5.3.0
{ | ||
"name": "websocket-stream", | ||
"version": "5.2.0", | ||
"version": "5.3.0", | ||
"license": "BSD-2-Clause", | ||
@@ -5,0 +5,0 @@ "description": "Use websockets with the node streams API. Works in browser and node", |
@@ -75,6 +75,2 @@ 'use strict' | ||
stream = proxy | ||
} else if (isBrowser) { | ||
stream = proxy | ||
stream.cork() | ||
socket.onopen = onopenBrowser | ||
} else { | ||
@@ -139,7 +135,2 @@ stream = duplexify.obj() | ||
function onopenBrowser () { | ||
stream.uncork() | ||
stream.emit('connect') | ||
} | ||
function onclose() { | ||
@@ -146,0 +137,0 @@ stream.end() |
@@ -62,14 +62,1 @@ var ws = require('./') | ||
}) | ||
test('cork logic test', function (t) { | ||
var stream = ws('ws://localhost:8343', { binary: true }) | ||
stream.on('data', function(o) { | ||
t.equal(o.toString(), 'hello', 'success!') | ||
stream.destroy() | ||
t.end() | ||
}) | ||
stream.cork() | ||
stream.write('he') | ||
stream.write('l') | ||
stream.write('lo') | ||
stream.uncork() | ||
}) |
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
22598
552