ws-events-and-middlewares
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -148,7 +148,7 @@ const Emitter = require('component-emitter') | ||
emit: function () { | ||
const args = arguments | ||
const args = Array.from(arguments) | ||
if (!Array.isArray(rooms[room])) { return } | ||
rooms[room].map(socketId => { | ||
console.log('Emitiendo mensaje el socket ' + socketId + ' por estar en la sala ' + room) | ||
clients[socketId].emit(args) | ||
clients[socketId].emit.apply(clients[socketId], args) | ||
}) | ||
@@ -155,0 +155,0 @@ } |
{ | ||
"name": "ws-events-and-middlewares", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"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
9270