This commit is contained in:
AdisakKanthawilang 2025-03-06 15:04:13 +07:00
parent 42cb907cfc
commit 4de905972c
3 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,5 @@
import { WebSocket, WebSocketServer } from "ws";
export const wss = new WebSocketServer({ noServer: true,
path: "/api/v1/org/socket",
});
import { WebSocket } from "ws";
import { wss } from "../app";
export async function sendWebSocket(data:any){
wss.clients.forEach((client: any) => {