update:优化比赛
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user