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

12 lines 341 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.emit = emit; function emit(peer, eventName, ...args) { const handlers = peer.eventSubscribers.get(eventName); if (handlers) { for (const handler of handlers) { handler(...args); } } } //# sourceMappingURL=emit.js.map