From 31f46fce2c43d8431faefef5a3eafc5d1814ad9e Mon Sep 17 00:00:00 2001 From: cilame Date: Mon, 9 May 2022 12:13:33 +0800 Subject: [PATCH] add --- tools/model_funcs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/model_funcs.js b/tools/model_funcs.js index f6e8bc5..d07c5c1 100644 --- a/tools/model_funcs.js +++ b/tools/model_funcs.js @@ -58,7 +58,7 @@ var server = wss.createServer(function(conn){ } }) conn.on("error", function(){}) - conn.on("close", function(){ console.log("close:", new URL(curr_url).origin) }) + conn.on("close", function(){ console.log("close:", new URL(curr_url).origin); global.conn = undefined }) }) server.listen(WSS_SERVER_PORT, function(){ console.log("wss start @", WSS_SERVER_PORT);