listen disconnect event, display unknow socket method name on dev

v1.18.x
barisusakli 10 years ago
parent dfae2ea0d7
commit 63cf8d674d

@ -172,6 +172,10 @@ Loader.addClusterEvents = function(callback) {
} }
}); });
cluster.on('disconnect', function(worker) {
console.log('[cluster] Child Process (' + worker.process.pid + ') has disconnected');
});
callback(); callback();
} }

@ -214,7 +214,10 @@ Sockets.init = function(server) {
}, Namespaces); }, Namespaces);
if(!methodToCall) { if(!methodToCall) {
return winston.warn('[socket.io] Unrecognized message: ' + payload.name); if (process.env.NODE_ENV === 'development') {
winston.warn('[socket.io] Unrecognized message: ' + payload.name);
}
return;
} }
if (Namespaces[namespace].before) { if (Namespaces[namespace].before) {

Loading…
Cancel
Save