UNPKG

pub-sub-topic-ts

Version:
20 lines (19 loc) 475 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Subscriber = void 0; class Subscriber { constructor(_topicName, _id, next) { this._topicName = _topicName; this._id = _id; this.next = next; this._next = next; this.topicName = _topicName; this.id = _id; } notify(value) { if (this._next) { this._next(value); } } } exports.Subscriber = Subscriber;