function websocketclose(){ //关闭 console.log("WebSocket关闭"); // initWebpack(this.token) } function websocketerror(){ //失败 console.log("WebSocket连接失败"); } export function close(){ this.websock.close()//关闭websocket this.websock.onclose=function(e){ console.log(e)//监听关闭事件...
Star111 Code Closed xrf1994wants to merge 1 commit intosctangqiang:masterfromxrf1994:patch-1 +4 Commits Commits on Feb 2, 2019 websocket 客户端主动关闭连接时,发送 opcode=0x8,处理有误会导致错误 得接收到数据。 diandian authored 21bd36f