@mdf.js/socket-server-provider
Version:
MMS - Socket.io Server Port for Javascript/Typescript
18 lines • 721 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({
port: joi_1.default.number().port(),
host: joi_1.default.alternatives().try(joi_1.default.string().hostname(), joi_1.default.string().ip()),
path: joi_1.default.string(),
enableUI: joi_1.default.boolean(),
}).unknown(true);
//# sourceMappingURL=schema.js.map