aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sockets.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sockets.js')
-rw-r--r--lib/sockets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sockets.js b/lib/sockets.js
index c80935d9..f482a445 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -65,7 +65,7 @@ setInterval(() => {
for (const id in sockets[username]) {
let ws = sockets[username][id];
ws.beats++;
- if (ws.beats > 10) ws.close(code, "too many beats");
+ if (ws.beats > 10) ws.close(code, `${username} ${id} lost heartbeat`);
}
}
}, 2000);