Socket
Socket
Sign inDemoInstall

ws-events-and-middlewares

Package Overview
Dependencies
2
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.18 to 1.0.19

13

index.js

@@ -57,2 +57,9 @@ const Emitter = require('component-emitter')

function onerror (err) {
delete clients[mySocketId]
Object.keys(rooms).map(room => {
const index = rooms[room].indexOf(mySocketId)
if (index > -1) {
rooms[room].splice(index, 1)
}
})
listeners.emit('error', err)

@@ -82,2 +89,8 @@ }

delete clients[mySocketId]
Object.keys(rooms).map(room => {
const index = rooms[room].indexOf(mySocketId)
if (index > -1) {
rooms[room].splice(index, 1)
}
})
listeners.emit('close', event)

@@ -84,0 +97,0 @@ }

2

package.json
{
"name": "ws-events-and-middlewares",
"version": "1.0.18",
"version": "1.0.19",
"description": "ws module wrapper to provide events",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc