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;