UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

25 lines 635 B
import { logger } from "../../utils/logger.js"; export class FrameBus { handlers = {}; subscribe(type, fn) { if (!this.handlers[type]) { this.handlers[type] = []; } this.handlers[type].push(fn); } publish(frame) { const subs = this.handlers[frame.type]; if (!subs) { return; } for (const fn of subs) { try { fn(frame); } catch (err) { logger.error(`[FrameBus] Subscriber threw on ${frame.type}:`, err); } } } } //# sourceMappingURL=frameBus.js.map