From f58a8516ffdaaf6768ea9ad93dc6389fbcf84376 Mon Sep 17 00:00:00 2001 From: lightings <17062401@qq.com> Date: Thu, 20 Jul 2023 19:42:27 +0800 Subject: [PATCH] ... --- game-server/app.js | 4 ++-- proxy/client_bak.js | 2 +- proxy/lib/deps/pomelo-jsclient.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/game-server/app.js b/game-server/app.js index 16e4d33..f705861 100644 --- a/game-server/app.js +++ b/game-server/app.js @@ -46,9 +46,9 @@ app.configure('production|development', function(){ app.set('connectorConfig', { connector : pomelo.connectors.hybridconnector, - heartbeat : 3, + // heartbeat : 3, useDict : true, - useProtobuf : true + useProtobuf : true, }); app.enable('systemMonitor'); app.route('chat', chatRoute) diff --git a/proxy/client_bak.js b/proxy/client_bak.js index 20d7b4b..20e955a 100644 --- a/proxy/client_bak.js +++ b/proxy/client_bak.js @@ -110,7 +110,7 @@ stick.onBody((msgId, data) => { console.log(msg); game.destroy(); - }, 1*1000); + }, 60*1000); }); diff --git a/proxy/lib/deps/pomelo-jsclient.js b/proxy/lib/deps/pomelo-jsclient.js index 754fbc5..653b194 100644 --- a/proxy/lib/deps/pomelo-jsclient.js +++ b/proxy/lib/deps/pomelo-jsclient.js @@ -153,7 +153,7 @@ class PomeloClient extends EventEmitter { }); this.socket.on("error", (event) => { this.emit("io-error", event); - console.error("socket error: ", event); + // console.error("socket error: ", event); }); this.socket.on("close", (event) => { this.emit("close", event);