mira-app-core
Version:
Core library for Mira TypeScript project - provides base functionality without auto-execution
18 lines • 631 B
TypeScript
import { LibraryServerDataSQLite } from 'mira-storage-sqlite';
import { WebSocket } from 'ws';
import { MessageHandler } from './handlers/MessageHandler';
export interface WebSocketMessage {
action: string;
requestId: string;
libraryId: string;
clientId: string;
payload: {
type: string;
data: Record<string, any>;
};
}
export declare class WebSocketRouter {
static route(server: any, // 修改为any类型避免类型冲突
dbService: LibraryServerDataSQLite, ws: WebSocket, message: WebSocketMessage): Promise<MessageHandler | null>;
}
//# sourceMappingURL=WebSocketRouter.d.ts.map