feat: 服務端 Api 可以持有 client socket
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import ApiCallbackMessage from "../api/ApiCallbackMessage.ts"
|
||||
import * as SocketIo from "socket.io"
|
||||
|
||||
type EventCallbackFunction = (args: { [key: string]: unknown }, clientInfo: {
|
||||
userId: string
|
||||
deviceId: string
|
||||
ip: string
|
||||
socket: SocketIo.Socket<SocketIo.DefaultEventsMap, SocketIo.DefaultEventsMap, SocketIo.DefaultEventsMap, any>
|
||||
}) => ApiCallbackMessage
|
||||
|
||||
export default EventCallbackFunction
|
||||
|
||||
Reference in New Issue
Block a user