fix: 多個同 DeviceId 不同 Session 的客戶端無法同時收到消息

This commit is contained in:
CrescentLeaf
2025-09-24 22:03:23 +08:00
parent 9a3e87d89c
commit 38db2e1310
5 changed files with 15 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ import * as SocketIo from "socket.io"
type EventCallbackFunction = (args: { [key: string]: unknown }, clientInfo: {
userId: string
deviceId: string
sessionId: string
ip: string
socket: SocketIo.Socket<SocketIo.DefaultEventsMap, SocketIo.DefaultEventsMap, SocketIo.DefaultEventsMap, any>
}) => ApiCallbackMessage | Promise<ApiCallbackMessage>