This commit is contained in:
@jyuhsin
2025-12-18 12:37:46 +08:00
parent 344229fc31
commit 5e13af047f
2 changed files with 86 additions and 73 deletions
@@ -168,7 +168,7 @@
this.isSubscribed = true
this.sendJoinMessage()
}
}, 500)
}, 1000)
}
// 事件处理
@@ -202,6 +202,7 @@
// )
// 连接建立时不立即发送 join,等待订阅完成
this.ping()
console.log('websocket open success')
}
}
@@ -245,7 +246,7 @@
}
}, 500)
}
}, 2000) // 延迟2秒重连
}, 1000) // 延迟2秒重连
}
// 窗口事件处理