@ngreatorex/homie-device
Version:
Homie Device for NodeJS
21 lines • 789 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const HomieTopologyWithConfiguration_1 = __importDefault(require("./HomieTopologyWithConfiguration"));
class HomieTopologyElement extends HomieTopologyWithConfiguration_1.default {
constructor(config, parent) {
super(config);
this.parent$ = parent;
}
get parent() { return this.parent$; }
rawPublish(path, value, options) {
this.parent$.publish(path, value, options);
}
rawSubscribe(path) {
this.parent$.subscribe(path);
}
}
exports.default = HomieTopologyElement;
//# sourceMappingURL=HomieTopologyElement.js.map