rem: socket.emit(message, resp); 
add: socket.emit('bonescript', resp); 
context:         var callMyFunc = function(name, m) {            var myCallback = function(resp) {                resp = resp || {};                if(m && m.seq) resp.seq = m.seq;                // TODO: consider setting 'oneshot'                socket.emit(message, resp);            }            try {                var callargs = [];                for(var arg in b[name].args) {                    var argname = b[name].args[arg];                    if(argname == 'callback') {                        winston.debug('Assigning callback to ' + name);                        callargs.push(myCallback);                    } else if(typeof m[argname] != 'undefined') {                        callargs.push(m[argname]);                    } else {                        callargs.push(undefined);                    }                }                winston.debug('callargs = ' + JSON.stringify(callargs));                winston.debug('myCallback = ' + myCallback);                b[name].apply(this, callargs);            } catch(ex) {                winston.debug('Error handing ' + name + ' message: ' + ex);                winston.debug('m = ' + JSON.stringify(m));            }        }
meta: 5211	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5211/1158a98dcd980a9f81baed88d9105dc1b8d6b9db/server.js/buggy/node_modules/bonescript/server.js