13 lines
420 B
JavaScript
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;
|