UNPKG

caravan-x

Version:

A terminal-based utility for managing Caravan multisig wallets in regtest mode. This tool simplifies development and testing with Caravan by providing an easy-to-use interface

56 lines (55 loc) 1.31 kB
import { BlockchainDataService } from "../data/blockchain-data"; /** * Enhanced HTTP Server for blockchain visualization with WebSockets */ export declare class VisualizationServer { private server; private app; private io; private port; private staticDir; private blockchainData; private updateInterval; private connectedClients; constructor(blockchainData: BlockchainDataService, staticDir: string, port?: number); /** * Configure Express middleware */ private configureMiddleware; /** * Configure Socket.io events */ private configureSocketEvents; /** * Configure client-specific events */ private configureClientEvents; /** * Configure API routes */ private configureRoutes; /** * Send initial data to a newly connected client */ private sendInitialData; /** * Broadcast blockchain update to all connected clients */ private broadcastBlockchainUpdate; /** * Start the real-time updates */ private startRealTimeUpdates; /** * Stop the real-time updates */ private stopRealTimeUpdates; /** * Start the server */ start(): Promise<void>; /** * Stop the server */ stop(): Promise<void>; }