朋友圈

This commit is contained in:
2025-12-08 13:43:54 +08:00
parent a7b5179976
commit b7a90e2fc2
7 changed files with 831 additions and 51 deletions

View File

@@ -124,7 +124,7 @@ class WebSocketManager {
onMessage(handler: MessageHandler) {
// 防止重复注册
if (!this.messageHandlers.includes(handler)) {
this.messageHandlers.push(handler)
this.messageHandlers.push(handler)
}
}
@@ -144,7 +144,7 @@ class WebSocketManager {
onSignal(handler: SignalHandler) {
// 防止重复注册
if (!this.signalHandlers.includes(handler)) {
this.signalHandlers.push(handler)
this.signalHandlers.push(handler)
}
}
@@ -164,7 +164,7 @@ class WebSocketManager {
onMomentNotification(handler: MomentNotifHandler) {
// 防止重复注册
if (!this.momentNotifHandlers.includes(handler)) {
this.momentNotifHandlers.push(handler)
this.momentNotifHandlers.push(handler)
}
}