UNPKG

homebridge-deconz-converter

Version:

Homebridge plugin for converting Deconz roller shutters interpreted as light into Homekit Window Covering type.

20 lines 642 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const stream_1 = require("stream"); const ws_1 = __importDefault(require("ws")); class WSClient extends stream_1.EventEmitter { constructor(host, port) { super(); this.host = host; this.port = port; this.config = { host, port }; } connect() { return new ws_1.default(`ws://${this.host}:${this.port}`); } } exports.default = WSClient; //# sourceMappingURL=wsClient.js.map