|
@@ -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: '连接断开,是否准备重连?',
|