mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
listen disconnect event, display unknow socket method name on dev
This commit is contained in:
@@ -214,7 +214,10 @@ Sockets.init = function(server) {
|
||||
}, Namespaces);
|
||||
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user