rtmc-be/build/api/websocket.js
2024-08-28 06:42:21 +03:00

13 lines
420 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ws_1 = __importDefault(require("ws"));
class Websocket {
constructor(server) {
this.wss = new ws_1.default.WebSocketServer({ path: "/ws", server });
}
}
exports.default = Websocket;