From 31c6d29bd8b29d162b3f4f658911ed36215cacc4 Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Wed, 13 Aug 2025 13:35:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E9=95=BF=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index f29908c..93f2b40 100644 --- a/server.js +++ b/server.js @@ -9,7 +9,7 @@ const { MessageHistory } = require('./src/message_history.js'); const app = express(); const server = http.createServer(app); const io = socketIo(server, { - pingTimeout: 60000, // 60秒超时 + pingTimeout: 300000, // 60秒超时 pingInterval: 25000, // 25秒心跳间隔 upgradeTimeout: 30000, // 30秒升级超时 allowEIO3: true, // 允许Engine.IO v3客户端