增加对websocket的异常处理

This commit is contained in:
dushixiang 2022-03-05 15:49:58 +08:00
parent c5c71a7fd4
commit 3ad1567a60

View File

@ -444,6 +444,7 @@ class Access extends Component {
client.onstatechange = this.onClientStateChange;
client.onerror = this.onError;
tunnel.onerror = this.onError;
// Get display div from document
const display = document.getElementById("display");