huangxiaojing 4 年之前
父节点
当前提交
b80f80913d
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      screenAndroid/WXdraw.js

+ 4 - 2
screenAndroid/WXdraw.js

@@ -53,7 +53,8 @@ function doConnect() {
 		}
 		wsss.send(ExexuteMove(JSON.stringify(bitRate), form.sn))
 	};
-	wsss.onclose = function () {
+	wsss.onclose = function (evt) {
+		console.log(evt.data);
 		$.confirm({
 			title: '提示',
 			text: '连接断开,是否准备重连?',
@@ -67,7 +68,8 @@ function doConnect() {
 			}
 		});
 	};
-	wsss.onerror = function () {
+	wsss.onerror = function (evt) {
+		console.log(evt.data);
 		$.confirm({
 			title: '提示',
 			text: '连接断开,是否准备重连?',