test
This commit is contained in:
parent
e94319a6b6
commit
5585f2e7c1
1 changed files with 4 additions and 3 deletions
|
|
@ -14,9 +14,10 @@ import http from "http";
|
||||||
import { WebSocket, WebSocketServer } from "ws"; // ✅ Import WebSocket
|
import { WebSocket, WebSocketServer } from "ws"; // ✅ Import WebSocket
|
||||||
|
|
||||||
// ✅ สร้าง WebSocket Server โดยใช้ HTTP Server เดียวกัน
|
// ✅ สร้าง 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() {
|
async function main() {
|
||||||
await AppDataSource.initialize();
|
await AppDataSource.initialize();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue