ws-events-and-middlewares
Advanced tools
Comparing version 1.0.25 to 1.1.1
@@ -44,5 +44,6 @@ const Emitter = require('component-emitter') | ||
if (json.c) { | ||
args = args.concat(function () { | ||
args = args.concat(function () { // <-- Esta es la funcion que van a ejecutar como callback para que nosotros se la enviemos al otro lado | ||
let callbackArgs = arguments // Nos quedamos con los parametros de la callback | ||
whenOpen(function() { | ||
sock.send(JSON.stringify({ callback: json.c, a: Array.from(arguments) })) | ||
sock.send(JSON.stringify({ callback: json.c, a: Array.from(callbackArgs) })) | ||
}) | ||
@@ -49,0 +50,0 @@ }) |
{ | ||
"name": "ws-events-and-middlewares", | ||
"version": "1.0.25", | ||
"version": "1.1.1", | ||
"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
9765
170