@@ -50,8 +50,8 @@ class WebSocketClient {
this.emit('connect')
}
- this.ws.onclose = () => {
- console.log('WebSocket连接关闭')
+ this.ws.onclose = (error) => {
+ console.log('WebSocket连接关闭',error)
this.isConnected = false
this.stopHeartbeat()
this.emit('disconnect')