websocket 关闭时日志输出
This commit is contained in:
@@ -66,6 +66,7 @@ class MyWs {
|
|||||||
}
|
}
|
||||||
close(){
|
close(){
|
||||||
if (this.ws && this.ws.readyState == 1) {
|
if (this.ws && this.ws.readyState == 1) {
|
||||||
|
console.log("客户端 连接已关闭")
|
||||||
this.ws.close()
|
this.ws.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user