Socket
Socket
Sign inDemoInstall

websocket-stream

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

websocket-stream - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc