New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simple-websocket

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-websocket - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

6

index.js

@@ -10,3 +10,3 @@ /* global WebSocket */

var _WebSocket = typeof WebSocket !== 'undefined' ? WebSocket : ws
var _WebSocket = typeof ws !== 'function' ? WebSocket : ws

@@ -41,3 +41,3 @@ inherits(Socket, stream.Duplex)

try {
if (typeof WebSocket === 'undefined') {
if (typeof ws === 'function') {
// `ws` package accepts options

@@ -133,3 +133,2 @@ self._ws = new _WebSocket(self.url, opts)

ws.onclose = null
self.emit('close')
}

@@ -154,2 +153,3 @@ if (ws.readyState === _WebSocket.CLOSED) {

if (err) self.emit('error', err)
self.emit('close')
}

@@ -156,0 +156,0 @@

{
"name": "simple-websocket",
"description": "Simple, EventEmitter API for WebSockets (browser)",
"version": "4.1.0",
"version": "4.2.0",
"author": {

@@ -24,3 +24,3 @@ "name": "Feross Aboukhadijeh",

"browserify": "^13.0.0",
"standard": "^7.0.0",
"standard": "*",
"tape": "^4.0.0",

@@ -27,0 +27,0 @@ "uglify-js": "^2.4.15",

Sorry, the diff of this file is too big to display

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