mira-app-core
Version:
Core library for Mira TypeScript project - provides base functionality without auto-execution
16 lines • 724 B
TypeScript
import { LibraryServerDataSQLite } from 'mira-storage-sqlite';
import { WebSocket } from 'ws';
import { WebSocketMessage } from './WebSocketRouter';
export declare abstract class MessageHandler {
protected dbService: LibraryServerDataSQLite;
protected ws: WebSocket;
protected message: WebSocketMessage;
constructor(dbService: LibraryServerDataSQLite, ws: WebSocket, message: WebSocketMessage);
abstract handle(): Promise<void>;
protected sendResponse(data: Record<string, any>): void;
protected sendError(error: string): void;
protected getLibraryId(): string;
protected getAction(): string;
protected getPayload(): Record<string, any>;
}
//# sourceMappingURL=MessageHandler.d.ts.map