v1.18.x
Julian Lam 11 years ago
parent 765402a2a0
commit 8b1ed1297b

@ -134,7 +134,7 @@ Sockets.init = function() {
socket.on('*', function(payload, callback) { socket.on('*', function(payload, callback) {
function callMethod(method) { function callMethod(method) {
method.call(null, socket, payload.args.length ? payload.args[0] : null, function(err, result) { method.call(null, socket, payload.args.length ? payload.args[0] : null, function(err, result) {
if(callback) { if (callback) {
callback(err?{message:err.message}:null, result); callback(err?{message:err.message}:null, result);
} }
}); });

Loading…
Cancel
Save