From 385ca8d97b4354a4730caa28c4c3b61c27ad8cdf Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 12 Sep 2025 15:06:50 +0800 Subject: [PATCH] bugfix --- bricks/wterm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/wterm.js b/bricks/wterm.js index 7880993..1e1a269 100644 --- a/bricks/wterm.js +++ b/bricks/wterm.js @@ -21,7 +21,7 @@ bricks.Wterm = class extends bricks.JsWidget { try { console.log('socket alive, destroy it'); // this.socket.send(JSON.stringify({ type: "close"})); - this.socket.close(1,'close now'); + this.socket.close(1000,'close now'); this.socket.onopen = null; this.socket.onmessage = null; this.socket.onerror = null;