@mdf.js/mqtt-provider
Version:
MMS - MQTT Port for Javascript/Typescript
24 lines • 987 B
JavaScript
"use strict";
/**
* Copyright 2024 Mytra Control S.L. All rights reserved.
*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
* or at https://opensource.org/licenses/MIT.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.schema = void 0;
const tslib_1 = require("tslib");
const joi_1 = tslib_1.__importDefault(require("joi"));
exports.schema = joi_1.default.object({
url: joi_1.default.string().uri().required(),
protocol: joi_1.default.string().valid('wss', 'ws', 'mqtt', 'mqtts', 'tcp', 'ssl', 'wx', 'wxs', 'ali', 'alis'),
resubscribe: joi_1.default.boolean(),
keepalive: joi_1.default.number().integer().min(1).max(65535),
username: joi_1.default.string(),
password: joi_1.default.string(),
clientId: joi_1.default.string(),
ca: joi_1.default.binary(),
cert: joi_1.default.binary(),
key: joi_1.default.binary(),
}).unknown(true);
//# sourceMappingURL=schema.js.map