@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
17 lines • 468 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Definition = void 0;
const node_crypto_1 = require("node:crypto");
class Definition {
constructor(id, peerId, meta) {
this.id = id;
this.peerId = peerId;
this.meta = meta;
this.parentId = '';
}
static nextId() {
return (0, node_crypto_1.randomUUID)();
}
}
exports.Definition = Definition;
//# sourceMappingURL=definition.js.map