朋友圈
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user