ws-events-and-middlewares
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -72,3 +72,2 @@ const Emitter = require('component-emitter') | ||
onopenHandlers = [] // Limpiamos los eventos pendientes | ||
clients[sock.id] = sock | ||
listeners.emit('open') | ||
@@ -191,5 +190,11 @@ } | ||
events.toAll = toAll | ||
events.clients = clients | ||
events.clients = | ||
// Guarados el nuevo cliente | ||
if (sock.id) { | ||
clients[sock.id] = sock | ||
} | ||
return events | ||
} |
{ | ||
"name": "ws-events-and-middlewares", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "ws module wrapper to provide events", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9602
171