集成websocket
This commit is contained in:
@@ -47,6 +47,7 @@ class WebSocketManager {
|
||||
console.log('WebSocket连接关闭');
|
||||
this.isConnected = false;
|
||||
this.onCloseCallback && this.onCloseCallback(event);
|
||||
this.reconnect(url);
|
||||
};
|
||||
this.webSocketInstance.onopen = () => {
|
||||
console.log("WebSocket连接成功");
|
||||
|
Reference in New Issue
Block a user