This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-06 16:14:53 +07:00
parent e94319a6b6
commit 5585f2e7c1

View file

@ -14,9 +14,10 @@ import http from "http";
import { WebSocket, WebSocketServer } from "ws"; // ✅ Import WebSocket
// ✅ สร้าง WebSocket Server โดยใช้ HTTP Server เดียวกัน
export const wss = new WebSocketServer({ noServer: true });
export const wss = new WebSocketServer({
noServer: true,
path: "/api/v1/probation/ws",
});
async function main() {
await AppDataSource.initialize();