admin管理员组

文章数量:1572325

原来

//实例对象的onopen属性
websocket.onopen = function (evt) {
    websocket.send("send message");
    console.log("connected");
}

修改bug

//实例对象的onopen属性
websocket.onopen = function (evt) {
    if (websocket.readyState === 1) {
        websocket.send("send message");
        console.log("connected readyState");
    }
}

 

本文标签: 报错executefailedswooleconnecting