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

11 lines 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.unsubscribe = unsubscribe; function unsubscribe(peer, eventName) { const fn = peer.remoteSubscriptions.get(eventName); if (fn) { peer.netron.peer.unsubscribe(eventName, fn); peer.remoteSubscriptions.delete(eventName); } } //# sourceMappingURL=unsubscribe.js.map