websocket-stream
Advanced tools
Comparing version 5.0.0 to 5.0.1
{ | ||
"name": "websocket-stream", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"license": "BSD-2-Clause", | ||
@@ -5,0 +5,0 @@ "description": "Use websockets with the node streams API. Works in browser and node", |
@@ -86,3 +86,3 @@ 'use strict' | ||
// was already open when passed in | ||
if (socket.readyState === WS.OPEN) { | ||
if (socket.readyState === socket.OPEN) { | ||
stream = proxy | ||
@@ -107,3 +107,3 @@ } else { | ||
// destroy() is called | ||
if (socket.readyState !== WS.OPEN) { | ||
if (socket.readyState !== socket.OPEN) { | ||
next() | ||
@@ -110,0 +110,0 @@ return |
@@ -8,3 +8,3 @@ | ||
ws = MozWebSocket | ||
} else { | ||
} else if (typeof window !== 'undefined') { | ||
ws = window.WebSocket || window.MozWebSocket | ||
@@ -11,0 +11,0 @@ } |
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
22170