UNPKG

@devgrid/netron

Version:

A powerful TypeScript library for building distributed systems with event bus, streaming capabilities, and remote object invocation. Features WebSocket-based bidirectional communication between Node.js and browser environments, service discovery, and type

25 lines (24 loc) 573 B
export interface NodeInfo { nodeId: string; address: string; services: ServiceInfo[]; timestamp: number; } export interface ServiceInfo { name: string; version?: string; } export interface DiscoveryOptions { heartbeatInterval?: number; heartbeatTTL?: number; pubSubEnabled?: boolean; pubSubChannel?: string; clientMode?: boolean; } export interface DiscoveryEvent { type: 'NODE_REGISTERED' | 'NODE_UPDATED' | 'NODE_DEREGISTERED'; nodeId: string; address: string; services: ServiceInfo[]; timestamp: number; }