disable logging user

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-09-21 14:08:41 +09:30
parent a283805b8b
commit 264a8cbf8b
+5 -5
View File
@@ -300,10 +300,10 @@ module.exports = function (
};
},
onDisconnect: webSocket => {
const user = clients.get(webSocket);
log.debug(`<ws> ${user.name} disconnected.`);
// If we don't wait a tick `user` becomes undefined.
// const user = clients.get(webSocket);
// log.debug(`<ws> ${user.name} disconnected.`);
//
// // If we don't wait a tick `user` becomes undefined.
process.nextTick(() => {
clients.delete(webSocket);
});
@@ -327,4 +327,4 @@ module.exports = function (
}
}
};
}
}