fix log
This commit is contained in:
parent
ed27b49205
commit
9ed22c11b2
2
index.js
2
index.js
@ -48,7 +48,7 @@ io.on("connection", (client) => {
|
|||||||
client.on("disconnect", () => {
|
client.on("disconnect", () => {
|
||||||
usersConnected--;
|
usersConnected--;
|
||||||
io.sockets.emit("update-count", {value: usersConnected});
|
io.sockets.emit("update-count", {value: usersConnected});
|
||||||
console.log(getCurrentTime() + ": Client disconnection")
|
console.log(getCurrentTime() + ": Client disconnection (" + client.usernameDenis + ")");
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on("message", (data) => {
|
client.on("message", (data) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user