fix ;bug
This commit is contained in:
@@ -35,6 +35,7 @@ export default class WebSocketUtil {
|
||||
*/
|
||||
init(flag = false) {
|
||||
if(flag) this.reconnectCount = 0
|
||||
this.isClose = false; // 手动关闭
|
||||
// 创建WebSocket连接
|
||||
this.socketTask = uni.connectSocket({
|
||||
url: this.url,
|
||||
|
||||
Reference in New Issue
Block a user