update:优化比赛

This commit is contained in:
2026-07-09 11:43:06 +08:00
parent af07d09ab6
commit f8efe4c4a4
9 changed files with 130 additions and 86 deletions
+2 -1
View File
@@ -258,7 +258,8 @@ function sendBuffer(buffer, label) {
currentSocket.send({
data: buffer,
success: () => {
console.log(`[match-ws] ${label} sent`);
if (label === "heartbeat ack") return;
console.log(`[match-ws] ${label} sent`, new Date());
},
fail: (err) => {
if (socket !== currentSocket) return;